Skip to content

Commit

Permalink
SubGh: fix a race condition (flipperdevices#1376)
Browse files Browse the repository at this point in the history
  • Loading branch information
Astrrra authored Jul 6, 2022
1 parent e17dae2 commit c72b678
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/subghz/subghz_tx_rx_worker.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,13 @@ bool subghz_tx_rx_worker_start(SubGhzTxRxWorker* instance, uint32_t frequency) {

instance->worker_running = true;

furi_thread_start(instance->thread);

if(furi_hal_subghz_is_tx_allowed(frequency)) {
instance->frequency = frequency;
res = true;
}

furi_thread_start(instance->thread);

return res;
}

Expand Down

0 comments on commit c72b678

Please sign in to comment.