Selected adjustments / fixes to make old apps compatible with new-style ADC driver

This commit is contained in:
Lorenz Meier
2013-01-12 00:38:49 +01:00
parent 2f94a7a2b7
commit dad7f9f436
6 changed files with 188 additions and 246 deletions
+2 -2
View File
@@ -366,8 +366,8 @@ int
adc_main(int argc, char *argv[])
{
if (g_adc == nullptr) {
/* XXX this hardcodes the minimum channel set for PX4FMU - should be configurable */
g_adc = new ADC((1 << 10) | (1 << 11));
/* XXX this hardcodes the default channel set for PX4FMU - should be configurable */
g_adc = new ADC((1 << 10) | (1 << 11) | (1 << 12) | (1 << 13));
if (g_adc == nullptr)
errx(1, "couldn't allocate the ADC driver");