From eb3f377d28af5a0e6e07bb74cb10e94bf326ec75 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 28 Jun 2019 14:04:21 +0100 Subject: [PATCH] Make ENABLE_RADIO debug symbol actually do something --- iot/main/main.ino | 3 ++- iot/main/settings.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/iot/main/main.ino b/iot/main/main.ino index 013955f..b4cb88e 100644 --- a/iot/main/main.ino +++ b/iot/main/main.ino @@ -68,9 +68,10 @@ void setup() { message[sizeof(uint32_t) + sizeof(float) + i] = bytes_lng[i]; } + #ifdef ENABLE_RADIO transmit_init(); transmit_send(message, message_size); - + #endif power_off(); // Doesn't return } diff --git a/iot/main/settings.h b/iot/main/settings.h index a6396fb..d245323 100644 --- a/iot/main/settings.h +++ b/iot/main/settings.h @@ -72,7 +72,7 @@ #define SD_FILENAME F("data.tsv") // Whether to write debug information to the filename below. This could compromise privacy, so it should be commented out for production. -#define SD_DEBUG_ENABLED +// #define SD_DEBUG_ENABLED // The filename on the microSD card to store debug information in #define SD_FILENAME_DEBUG F("debug.log")