subbrute_utils.c 538 B

12345678910111213
  1. #include "subbrute_utils.h"
  2. bool subbrute_is_frequency_allowed(SubBruteState* context) {
  3. // I know you don't like it but laws are laws
  4. // It's opensource so do whatever you want, but remember the risks :)
  5. // (Yes, this comment is the only purpose of this function)
  6. bool r = furi_hal_subghz_is_tx_allowed(context->frequency);
  7. if(!r) {
  8. FURI_LOG_E(TAG, "Frequency %d is not allowed in your region", context->frequency);
  9. notification_message(context->notify, &sequence_single_vibro);
  10. }
  11. return r;
  12. }