Make ENABLE_RADIO debug symbol actually do something

This commit is contained in:
Starbeamrainbowlabs 2019-06-28 14:04:21 +01:00
parent 1bbb1fe535
commit eb3f377d28
2 changed files with 3 additions and 2 deletions

View file

@ -68,9 +68,10 @@ void setup() {
message[sizeof(uint32_t) + sizeof(float) + i] = bytes_lng[i]; message[sizeof(uint32_t) + sizeof(float) + i] = bytes_lng[i];
} }
#ifdef ENABLE_RADIO
transmit_init(); transmit_init();
transmit_send(message, message_size); transmit_send(message, message_size);
#endif
power_off(); // Doesn't return power_off(); // Doesn't return
} }

View file

@ -72,7 +72,7 @@
#define SD_FILENAME F("data.tsv") #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. // 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 // The filename on the microSD card to store debug information in
#define SD_FILENAME_DEBUG F("debug.log") #define SD_FILENAME_DEBUG F("debug.log")