2016-03-26 15:07:15 +01:00
|
|
|
#pragma once
|
2016-03-30 00:44:37 +02:00
|
|
|
//#define CONFIG_SKETCH_DEBUG
|
2016-03-26 15:07:15 +01:00
|
|
|
|
|
|
|
// Set where debug messages will be printed.
|
2021-02-18 00:25:45 +01:00
|
|
|
#ifndef DEBUG_PRINTER_WIFICONTROLSENSOR
|
|
|
|
#define DEBUG_PRINTER_WIFICONTROLSENSOR Serial
|
|
|
|
#endif
|
2016-03-26 15:07:15 +01:00
|
|
|
|
2016-03-30 00:44:37 +02:00
|
|
|
#ifdef CONFIG_SKETCH_DEBUG
|
2021-02-18 00:25:45 +01:00
|
|
|
#define SKETCH_DEBUG_INIT(speed){ DEBUG_PRINTER_WIFICONTROLSENSOR.begin(speed); }
|
|
|
|
#define SKETCH_DEBUG_PRINT(...) { DEBUG_PRINTER_WIFICONTROLSENSOR.print(__VA_ARGS__); }
|
|
|
|
#define SKETCH_DEBUG_PRINTF(...) { DEBUG_PRINTER_WIFICONTROLSENSOR.printf(__VA_ARGS__); }
|
|
|
|
#define SKETCH_DEBUG_PRINTLN(...) { DEBUG_PRINTER_WIFICONTROLSENSOR.println(__VA_ARGS__); }
|
2016-03-26 15:07:15 +01:00
|
|
|
#else
|
|
|
|
#define SKETCH_DEBUG_INIT(speed)
|
|
|
|
#define SKETCH_DEBUG_PRINT(...) {}
|
|
|
|
#define SKETCH_DEBUG_PRINTF(...) {}
|
|
|
|
#define SKETCH_DEBUG_PRINTLN(...) {}
|
|
|
|
#endif
|
|
|
|
|