From 8f0c94c1a5f6d4b971c8d8f8344c6005822174af Mon Sep 17 00:00:00 2001 From: Derek Jamison Date: Sat, 4 Mar 2023 11:29:55 -0500 Subject: [PATCH] furi_hal_subghz_is_tx_allowed(..) not in all fw. --- subghz/plugins/subghz_demo/README.md | 5 ----- subghz/plugins/subghz_demo/subghz_demo_app.c | 10 ---------- 2 files changed, 15 deletions(-) diff --git a/subghz/plugins/subghz_demo/README.md b/subghz/plugins/subghz_demo/README.md index 34ceae1..c39e7c4 100644 --- a/subghz/plugins/subghz_demo/README.md +++ b/subghz/plugins/subghz_demo/README.md @@ -97,11 +97,6 @@ sudo hackrf_transfer -r flipper-chat.rf -f 433920000 -s 8000000 -x 47 uint32_t frequency = 433920000; ``` - - Check to see if broadcasting is allowed on the frequency. - ``` - if (!furi_hal_subghz_is_tx_allowed(frequency)) { /* show error about TX not allowed! */ } - ``` - - Allocate the subghz TX/RX worker. ``` demo_context->subghz_txrx = subghz_tx_rx_worker_alloc(); diff --git a/subghz/plugins/subghz_demo/subghz_demo_app.c b/subghz/plugins/subghz_demo/subghz_demo_app.c index 3a42200..18bcf15 100644 --- a/subghz/plugins/subghz_demo/subghz_demo_app.c +++ b/subghz/plugins/subghz_demo/subghz_demo_app.c @@ -376,16 +376,6 @@ int32_t subghz_demo_app(void* p) { // TODO: Have an ordered list of frequencies we try, instead of just 1 frequency. - // Since this demo transmits RF, we see if it is allowed. - if(!furi_hal_subghz_is_tx_allowed(frequency)) { - FURI_LOG_E(TAG, "Transmit on frequency %ld not allowed", frequency); - - // For this demo we don't show a friendly error about not being - // allowed to broadcast on this frequency. Instead the application - // just exits. - return 1; - } - // Configure our initial data. DemoContext* demo_context = malloc(sizeof(DemoContext)); demo_context->mutex = furi_mutex_alloc(FuriMutexTypeNormal);