Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardize all output in JSON format #2

Open
wants to merge 1 commit into
base: origin
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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