Skip to content

Commit

Permalink
Merge pull request #12 from AndrewR-L/patch-1
Browse files Browse the repository at this point in the history
ntrip: server: Indicate caster not ready when disconnecting
  • Loading branch information
nebkat authored Feb 12, 2020
2 parents 86aa75c + 8960a0c commit ed4fdf2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main/ntrip_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,7 @@ static void ntrip_server_task(void *ctx) {
vTaskSuspend(NULL);

// Disconnected
xEventGroupSetBits(server_event_group, CASTER_READY_BIT);
xEventGroupClearBits(server_event_group, DATA_SENT_BIT);
xEventGroupClearBits(server_event_group, CASTER_READY_BIT | DATA_SENT_BIT);

if (status_led != NULL) status_led->active = false;

Expand All @@ -188,4 +187,4 @@ void ntrip_server_init() {
if (!config_get_bool1(CONF_ITEM(KEY_CONFIG_NTRIP_SERVER_ACTIVE))) return;

xTaskCreate(ntrip_server_task, "ntrip_server_task", 4096, NULL, TASK_PRIORITY_NTRIP, &server_task);
}
}

0 comments on commit ed4fdf2

Please sign in to comment.