flipperdevices / flipperzero-good-faps

Flipper Zero Official Apps maintained by Flipper Team and Friends
GNU General Public License v3.0
313 stars 57 forks source link

NFC / RFID Detector does not put NFC in low power mode on exit #257

Open peterfab9845 opened 3 weeks ago

peterfab9845 commented 3 weeks ago

The NFC/RFID Detector app does not use furi_hal_nfc_low_power_mode_stop()/furi_hal_nfc_low_power_mode_start(), so when it is exited, the NFC hardware is left active. This results in an extra idle power drain of a few mA.

I tried adding these functions after acquiring and before releasing NFC in https://github.com/flipperdevices/flipperzero-good-faps/commit/3b19a511a6f38c035edceab57792c343e9b8470c, but it triggers a furi_check (link) because both the RFID hardware (link) and the NFC hardware (link) try to use TIM1.