From d123dc83bdc28c72bfd3014afba3e6fcc453a2f5 Mon Sep 17 00:00:00 2001 From: Zer0-bit Date: Tue, 24 May 2022 17:40:13 +0100 Subject: [PATCH] + code style and dbg fix --- src/dbg.h | 2 +- src/gaggiuino.ino | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/dbg.h b/src/dbg.h index d5010d6aa..e4fd4f80f 100644 --- a/src/dbg.h +++ b/src/dbg.h @@ -31,4 +31,4 @@ static int readTempSensor(int32_t VRef) { #endif } #endif -#endif \ No newline at end of file +#endif diff --git a/src/gaggiuino.ino b/src/gaggiuino.ino index e43dd941d..14ee5abd7 100644 --- a/src/gaggiuino.ino +++ b/src/gaggiuino.ino @@ -1,6 +1,6 @@ // #define SINGLE_HX711_CLOCK #define DEBUG_ENABLED -#if defined(DEBUG_ENABLED) +#if defined(DEBUG_ENABLED) && defined(ARDUINO_ARCH_STM32) #include "dbg.h" #endif #if defined(ARDUINO_ARCH_AVR) @@ -214,10 +214,10 @@ void setup() { // init the exteranl ADC ads1115Init(); - + // Debug init if enabled dbgInit(); - + // Turn off boiler in case init is unsecessful setBoiler(LOW); // relayPin LOW @@ -1227,4 +1227,4 @@ void dbgOutput() { myNex.writeNum("debug1",readTempSensor(VRef)); myNex.writeNum("debug2",ADS.getError()); #endif -} \ No newline at end of file +}