mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-18 00:33:09 +00:00
13 lines
No EOL
538 B
C
13 lines
No EOL
538 B
C
#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)
|
|
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);
|
|
}
|
|
return r;
|
|
} |