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

don't see why ADCee fails

This commit is contained in:
travis-farmer 2023-10-23 07:29:37 -04:00
parent decebd1802
commit 38f4d5f9d9

View File

@ -314,7 +314,7 @@ void DCCTimer::reset() {
int16_t ADCee::ADCmax()
{
return 4095;
return 1023;
}
int ADCee::init(uint8_t pin) {
@ -335,11 +335,11 @@ int ADCee::read(uint8_t pin, bool fromISR) {
/*
* Scan function that is called from interrupt
*/
//#pragma GCC push_options
//#pragma GCC optimize ("-O3")
#pragma GCC push_options
#pragma GCC optimize ("-O3")
void ADCee::scan() {
}
//#pragma GCC pop_options
#pragma GCC pop_options
void ADCee::begin() {
noInterrupts();