From 8bc49c355d6a2b6fcf45ccd287acf12ab5c77545 Mon Sep 17 00:00:00 2001 From: Christopher Snell Date: Wed, 14 Oct 2015 20:49:36 -0700 Subject: [PATCH] Print "searching..." messages as JSON --- Firmware/radio/loop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Firmware/radio/loop.c b/Firmware/radio/loop.c index 3f62884..403e9ce 100644 --- a/Firmware/radio/loop.c +++ b/Firmware/radio/loop.c @@ -144,7 +144,7 @@ static void one_second(void) radio_receiver_on(); one_second_counter = 0; } - printf("Searching %lu at %lu Hz\n", + printf("{\"ready\": false, \"status\": \"Searching %lu at %lu Hz\"}\n", (unsigned long)seconds_since_boot, (unsigned long)fhop_receive_freqency()); return; @@ -191,7 +191,7 @@ static void print_hex(register uint8_t v) static void show_iss_data(void) { __pdata uint8_t i; - printf("{ "); + printf("{ \"ready\": true, \"status\": \"Receiving ISS data\", "); if (iss_data.valid_mask & VALID_TRANSMITTER) { printf("\"transmitter_id\": %u, ", (unsigned)iss_data.transmitter_id); }