From d0b31350b0e390ed756bfc2180ccfa1570c36215 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Mon, 16 Sep 2024 12:29:22 +0200 Subject: [PATCH] don't read from serial client until SDR is ready --- net_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net_io.c b/net_io.c index 0c643451..69aabf2b 100644 --- a/net_io.c +++ b/net_io.c @@ -5466,7 +5466,7 @@ void modesNetPeriodicWork(void) { timespec_add_elapsed(&before, &after, &Modes.stats_current.background_cpu); } - if (Modes.serial_client) { + if (Modes.serial_client && Modes.sdrInitialized) { if (Modes.serial_client->service) { modesReadFromClient(Modes.serial_client, mb); } else {