debug code removed
This commit is contained in:
@ -31,14 +31,14 @@ void measureInit(void *handleArg) {
|
||||
void measureCollectAndProcessConversion(void *handleArg);
|
||||
|
||||
void measureStartConversion(void *handleArg) {
|
||||
gpioSetPin(TESTPIN1, HIGH);
|
||||
//gpioSetPin(TESTPIN1, HIGH);
|
||||
ADC10CTL0 |= ENC | ADC10SC;
|
||||
schAdd(measureCollectAndProcessConversion, NULL, 10, 0);
|
||||
gpioSetPin(TESTPIN1, LOW);
|
||||
//gpioSetPin(TESTPIN1, LOW);
|
||||
}
|
||||
|
||||
void measureCollectAndProcessConversion(void *handleArg) {
|
||||
gpioSetPin(TESTPIN2, HIGH);
|
||||
//gpioSetPin(TESTPIN2, HIGH);
|
||||
uint16_t n = 0xffff;
|
||||
if ((ADC10CTL0 & ADC10IFG) != 0) {
|
||||
n = ADC10MEM;
|
||||
@ -53,7 +53,7 @@ void measureCollectAndProcessConversion(void *handleArg) {
|
||||
uint8_t temperature = (uint8_t)t;
|
||||
|
||||
displaySetValue(temperature);
|
||||
gpioSetPin(TESTPIN2, LOW);
|
||||
//gpioSetPin(TESTPIN2, LOW);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user