furi_hal_subghz_is_tx_allowed(..) not in all fw.

This commit is contained in:
Derek Jamison 2023-03-04 11:29:55 -05:00
parent 69f7ee770d
commit 8f0c94c1a5
2 changed files with 0 additions and 15 deletions

View File

@ -97,11 +97,6 @@ sudo hackrf_transfer -r flipper-chat.rf -f 433920000 -s 8000000 -x 47
uint32_t frequency = 433920000; 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. - Allocate the subghz TX/RX worker.
``` ```
demo_context->subghz_txrx = subghz_tx_rx_worker_alloc(); demo_context->subghz_txrx = subghz_tx_rx_worker_alloc();

View File

@ -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. // 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. // Configure our initial data.
DemoContext* demo_context = malloc(sizeof(DemoContext)); DemoContext* demo_context = malloc(sizeof(DemoContext));
demo_context->mutex = furi_mutex_alloc(FuriMutexTypeNormal); demo_context->mutex = furi_mutex_alloc(FuriMutexTypeNormal);