diff options
Diffstat (limited to 'firmware/drivers/adc.c')
-rw-r--r-- | firmware/drivers/adc.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/firmware/drivers/adc.c b/firmware/drivers/adc.c index f4bdb7a54f..f1a6d7e667 100644 --- a/firmware/drivers/adc.c +++ b/firmware/drivers/adc.c | |||
@@ -294,10 +294,7 @@ static struct adc_struct adcdata[NUM_ADC_CHANNELS]; | |||
294 | 294 | ||
295 | static unsigned short adc_scan(struct adc_struct *adc) | 295 | static unsigned short adc_scan(struct adc_struct *adc) |
296 | { | 296 | { |
297 | /* Disable interrupts during the I2C transaction */ | ||
298 | int old_irq_level = set_irq_level(HIGHEST_IRQ_LEVEL); | ||
299 | unsigned short data = pcf50605_a2d_read(adc->channelnum); | 297 | unsigned short data = pcf50605_a2d_read(adc->channelnum); |
300 | set_irq_level(old_irq_level); | ||
301 | /* This gives us a 13 bit value corresponding to 0-5.4 volts | 298 | /* This gives us a 13 bit value corresponding to 0-5.4 volts |
302 | * The range of the value is 13FB-17FA */ | 299 | * The range of the value is 13FB-17FA */ |
303 | data = (data<<2)+0x13FB; | 300 | data = (data<<2)+0x13FB; |