some more debug
This commit is contained in:
@ -9,7 +9,6 @@
|
|||||||
#define DEFINES_H_
|
#define DEFINES_H_
|
||||||
|
|
||||||
//#define DEBUG
|
//#define DEBUG
|
||||||
// #define SLEEP
|
|
||||||
|
|
||||||
#define EEPROM_ADDR 0
|
#define EEPROM_ADDR 0
|
||||||
|
|
||||||
|
@ -156,7 +156,9 @@ void loopProduction() {
|
|||||||
static tPressedState state = NOT_PRESSED;
|
static tPressedState state = NOT_PRESSED;
|
||||||
if (capNum > configBlock.threshold) {
|
if (capNum > configBlock.threshold) {
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
Serial.println(capNum);
|
char payload[128];
|
||||||
|
snprintf(payload, 127, "%ld %ld %ld %ld", senseCnt, baseline, chargeCntAvg, capNum);
|
||||||
|
Serial.println(payload);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
switch (state) {
|
switch (state) {
|
||||||
|
Reference in New Issue
Block a user