1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-28 10:36:14 +01:00

...forgot to clen something out...

This commit is contained in:
travis-farmer 2023-10-23 17:47:40 -04:00
parent e54cd0919c
commit 80365c214e

View File

@ -169,10 +169,7 @@ AdvancedADC adc(A0, A1);
int ADCee::init(uint8_t pin) { int ADCee::init(uint8_t pin) {
adc.begin(AN_RESOLUTION_10, 16000, 1, 4); adc.begin(AN_RESOLUTION_10, 16000, 1, 4);
if (adc.available()) { return 123;
SampleBuffer buf = adc.read();
buf.release();
}
} }
/* /*
@ -194,8 +191,6 @@ int ADCee::read(uint8_t pin, bool fromISR) {
} }
buf.release(); buf.release();
} }
return 1023;
} }
/* /*