mirror of
https://github.com/DCC-EX/CommandStation-EX.git
synced 2024-11-24 08:36:14 +01:00
...forgot to clen something out...
This commit is contained in:
parent
e54cd0919c
commit
80365c214e
|
@ -169,10 +169,7 @@ AdvancedADC adc(A0, A1);
|
|||
int ADCee::init(uint8_t pin) {
|
||||
|
||||
adc.begin(AN_RESOLUTION_10, 16000, 1, 4);
|
||||
if (adc.available()) {
|
||||
SampleBuffer buf = adc.read();
|
||||
buf.release();
|
||||
}
|
||||
return 123;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -194,8 +191,6 @@ int ADCee::read(uint8_t pin, bool fromISR) {
|
|||
}
|
||||
buf.release();
|
||||
}
|
||||
|
||||
return 1023;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue
Block a user