some more debug

This commit is contained in:
Wolfgang Hottgenroth 2018-01-30 13:35:39 +01:00
parent 1147656d47
commit 10f155caa3
2 changed files with 4 additions and 3 deletions

View File

@ -8,8 +8,7 @@
#ifndef DEFINES_H_
#define DEFINES_H_
// #define DEBUG
// #define SLEEP
//#define DEBUG
#define EEPROM_ADDR 0

View File

@ -156,7 +156,9 @@ void loopProduction() {
static tPressedState state = NOT_PRESSED;
if (capNum > configBlock.threshold) {
#ifdef DEBUG
Serial.println(capNum);
char payload[128];
snprintf(payload, 127, "%ld %ld %ld %ld", senseCnt, baseline, chargeCntAvg, capNum);
Serial.println(payload);
#endif
switch (state) {