2022-09-07 13:38:20 +00:00
|
|
|
#include "subbrute_utils.h"
|
|
|
|
|
|
|
|
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)
|
2022-09-07 13:39:04 +00:00
|
|
|
bool r = furi_hal_subghz_is_tx_allowed(context->frequency);
|
2022-09-07 13:38:20 +00:00
|
|
|
if(!r) {
|
|
|
|
FURI_LOG_E(TAG, "Frequency %d is not allowed in your region", context->frequency);
|
|
|
|
notification_message(context->notify, &sequence_single_vibro);
|
|
|
|
}
|
|
|
|
return r;
|
|
|
|
}
|