zoul: fix a bitmask bug in channels used
This commit is contained in:
parent
9befc02331
commit
a7e617657a
@ -162,7 +162,8 @@ configure(int type, int value)
|
|||||||
}
|
}
|
||||||
adc_init();
|
adc_init();
|
||||||
set_decimation_rate(SOC_ADC_ADCCON_DIV_512);
|
set_decimation_rate(SOC_ADC_ADCCON_DIV_512);
|
||||||
enabled_channels += value;
|
enabled_channels |= value;
|
||||||
|
PRINTF("ADC: enabled channels 0x%02X\n", enabled_channels);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ZOUL_SENSORS_CONFIGURE_TYPE_DECIMATION_RATE:
|
case ZOUL_SENSORS_CONFIGURE_TYPE_DECIMATION_RATE:
|
||||||
|
Loading…
Reference in New Issue
Block a user