Skip to content

Commit

Permalink
Print "searching..." messages as JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissnell committed Oct 15, 2015
1 parent 1a32591 commit 8bc49c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Firmware/radio/loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 8bc49c3

Please sign in to comment.