mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 22:48:35 -07:00
Final merge fixes
This commit is contained in:
@@ -59,10 +59,12 @@ static void desktop_scene_pin_input_done_callback(const DesktopPinCode* pin_code
|
||||
} else {
|
||||
uint32_t pin_fails = furi_hal_rtc_get_pin_fails() + 1;
|
||||
if(pin_fails >= 10 && momentum_settings.bad_pins_format) {
|
||||
storage_sd_format(furi_record_open(RECORD_STORAGE));
|
||||
Storage* storage = furi_record_open(RECORD_STORAGE);
|
||||
storage_sd_format(storage);
|
||||
furi_record_close(RECORD_STORAGE);
|
||||
furi_hal_rtc_reset_registers();
|
||||
power_reboot(PowerBootModeNormal);
|
||||
Power* power = furi_record_open(RECORD_POWER);
|
||||
power_reboot(power, PowerBootModeNormal);
|
||||
}
|
||||
furi_hal_rtc_set_pin_fails(pin_fails);
|
||||
view_dispatcher_send_custom_event(
|
||||
|
||||
Reference in New Issue
Block a user