From 38f4d5f9d96c6fdbec1f4ed23012046c7e5a6be5 Mon Sep 17 00:00:00 2001 From: travis-farmer Date: Mon, 23 Oct 2023 07:29:37 -0400 Subject: [PATCH] don't see why ADCee fails --- DCCTimerGiga.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DCCTimerGiga.cpp b/DCCTimerGiga.cpp index cad18f0..b5e25b7 100644 --- a/DCCTimerGiga.cpp +++ b/DCCTimerGiga.cpp @@ -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();