From: janhauer Date: Fri, 20 Jun 2008 10:30:28 +0000 (+0000) Subject: The bugfix of Apr 18 introduced a new problem that is now fixed. X-Git-Tag: release_tinyos_2_1_0_0~223 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=15dd07ac161bdd4e0de60ce437b110dd91424a7f The bugfix of Apr 18 introduced a new problem that is now fixed. --- diff --git a/tos/chips/msp430/adc12/HplAdc12P.nc b/tos/chips/msp430/adc12/HplAdc12P.nc index aaee9ce5..54c9c346 100644 --- a/tos/chips/msp430/adc12/HplAdc12P.nc +++ b/tos/chips/msp430/adc12/HplAdc12P.nc @@ -107,9 +107,11 @@ implementation async command void HplAdc12.stopConversion(){ // stop conversion mode immediately, conversion data is unreliable + uint16_t ctl1 = ADC12CTL1; ADC12CTL1 &= ~(CONSEQ0 | CONSEQ1); ADC12CTL0 &= ~(ADC12SC + ENC); - ADC12CTL0 &= ~(ADC12ON); + ADC12CTL0 &= ~(ADC12ON); + ADC12CTL1 |= (ctl1 & (CONSEQ0 | CONSEQ1)); } async command void HplAdc12.enableConversion(){