From cafc4fdec49474bc00df16379f23c7aab161193c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D0=B5=D0=BB=D0=BE=D1=83=D1=81=D0=BE=D0=B2=20=D0=9E?= =?UTF-8?q?=D0=BB=D0=B5=D0=B3?= Date: Thu, 24 Sep 2020 11:04:00 +0300 Subject: [PATCH] Bug fix --- firmware/application/apps/ui_morse.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/firmware/application/apps/ui_morse.cpp b/firmware/application/apps/ui_morse.cpp index f01bedbb4..b04659702 100644 --- a/firmware/application/apps/ui_morse.cpp +++ b/firmware/application/apps/ui_morse.cpp @@ -154,6 +154,12 @@ void MorseView::on_tx_progress(const uint32_t progress, const bool done) { text_tx_duration.set("wait"); progressbar.set_max(loop); progressbar.set_value(0); + + if (loopthread) { + chThdRelease(loopthread); + loopthread = nullptr; + } + loopthread = chThdCreateFromHeap(NULL, 1024, NORMALPRIO, loopthread_fn, this); } else { tx_view.set_transmitting(false);