This commit is contained in:
Белоусов Олег 2020-09-24 11:04:00 +03:00
parent 25ba2f1391
commit cafc4fdec4

View File

@ -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);