Skip to content

Commit

Permalink
+ code style and dbg fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Zer0-bit committed May 24, 2022
1 parent d674176 commit d123dc8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/dbg.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ static int readTempSensor(int32_t VRef) {
#endif
}
#endif
#endif
#endif
8 changes: 4 additions & 4 deletions src/gaggiuino.ino
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -1227,4 +1227,4 @@ void dbgOutput() {
myNex.writeNum("debug1",readTempSensor(VRef));
myNex.writeNum("debug2",ADS.getError());
#endif
}
}

0 comments on commit d123dc8

Please sign in to comment.