Merge pull request #196 from strijar/morse_tx

Bug fix
This commit is contained in:
Erwin Ried 2020-09-24 10:33:06 +02:00 committed by GitHub
commit e75dfdaf2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,6 +154,12 @@ void MorseView::on_tx_progress(const uint32_t progress, const bool done) {
text_tx_duration.set("wait"); text_tx_duration.set("wait");
progressbar.set_max(loop); progressbar.set_max(loop);
progressbar.set_value(0); progressbar.set_value(0);
if (loopthread) {
chThdRelease(loopthread);
loopthread = nullptr;
}
loopthread = chThdCreateFromHeap(NULL, 1024, NORMALPRIO, loopthread_fn, this); loopthread = chThdCreateFromHeap(NULL, 1024, NORMALPRIO, loopthread_fn, this);
} else { } else {
tx_view.set_transmitting(false); tx_view.set_transmitting(false);