subbrute 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. commit 9dc90e6a35ded220f18ad111adf5f3435b207b39
  2. Author: MX <10697207+xMasterX@users.noreply.github.com>
  3. Date: Sat Aug 10 16:12:00 2024 +0300
  4. ifdef fixes
  5. diff --git a/helpers/subbrute_worker.c b/helpers/subbrute_worker.c
  6. index adb5297bf..6ca6187f7 100644
  7. --- a/helpers/subbrute_worker.c
  8. +++ b/helpers/subbrute_worker.c
  9. @@ -236,7 +236,7 @@ bool subbrute_worker_transmit_current_key(SubBruteWorker* instance, uint64_t ste
  10. uint32_t ticks = furi_get_tick();
  11. if((ticks - instance->last_time_tx_data) < SUBBRUTE_MANUAL_TRANSMIT_INTERVAL) {
  12. -#if FURI_DEBUG
  13. +#ifdef FURI_DEBUG
  14. FURI_LOG_D(TAG, "Need to wait, current: %ld", ticks - instance->last_time_tx_data);
  15. #endif
  16. return false;
  17. @@ -270,7 +270,7 @@ bool subbrute_worker_transmit_current_key(SubBruteWorker* instance, uint64_t ste
  18. subbrute_worker_subghz_transmit(instance, flipper_format);
  19. result = true;
  20. -#if FURI_DEBUG
  21. +#ifdef FURI_DEBUG
  22. FURI_LOG_D(TAG, "Manual transmit done");
  23. #endif
  24. diff --git a/subbrute_device.c b/subbrute_device.c
  25. index c75f06592..30dbc4543 100644
  26. --- a/subbrute_device.c
  27. +++ b/subbrute_device.c
  28. @@ -335,7 +335,7 @@ uint8_t subbrute_device_load_from_file(SubBruteDevice* instance, const char* fil
  29. for(size_t i = 0; i < sizeof(uint64_t); i++) {
  30. data = (data << 8) | key_data[i];
  31. }
  32. -#if FURI_DEBUG
  33. +#ifdef FURI_DEBUG
  34. FURI_LOG_D(TAG, "Key: %.16llX", data);
  35. #endif
  36. instance->key_from_file = data;