From 8955388a606de7bde0aa308edaedaefa6d4cce84 Mon Sep 17 00:00:00 2001 From: Ganapati Date: Wed, 7 Sep 2022 15:39:04 +0200 Subject: [PATCH] add tx region check --- applications/subbrute/subbrute_utils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/applications/subbrute/subbrute_utils.c b/applications/subbrute/subbrute_utils.c index e045eb593..2aafc7175 100644 --- a/applications/subbrute/subbrute_utils.c +++ b/applications/subbrute/subbrute_utils.c @@ -4,8 +4,7 @@ bool subbrute_is_frequency_allowed(SubBruteState* context) { // I know you don't like it but laws are laws // It's opensource so do whatever you want, but remember the risks :) // (Yes, this comment is the only purpose of this function) - //bool r = furi_hal_region_is_frequency_allowed(context->frequency); - bool r = true; + bool r = furi_hal_subghz_is_tx_allowed(context->frequency); if(!r) { FURI_LOG_E(TAG, "Frequency %d is not allowed in your region", context->frequency); notification_message(context->notify, &sequence_single_vibro);