mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 21:13:16 +00:00
Merge branch 'fz-dev' into dev
This commit is contained in:
commit
66e361714f
2 changed files with 5 additions and 8 deletions
|
@ -254,7 +254,7 @@ static void
|
|||
session_register_page = 234;
|
||||
break;
|
||||
default:
|
||||
furi_assert(false);
|
||||
furi_crash("Unknown MFUL");
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -940,7 +940,7 @@ static bool mf_ul_check_lock(MfUltralightEmulator* emulator, int16_t write_page)
|
|||
if(write_page >= 512) return true;
|
||||
break;
|
||||
default:
|
||||
furi_assert(false);
|
||||
furi_crash("Unknown MFUL");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -967,8 +967,7 @@ static bool mf_ul_check_lock(MfUltralightEmulator* emulator, int16_t write_page)
|
|||
else if(write_page == 41)
|
||||
shift = 12;
|
||||
else {
|
||||
furi_assert(false);
|
||||
shift = 0;
|
||||
furi_crash("Unknown MFUL");
|
||||
}
|
||||
|
||||
break;
|
||||
|
@ -999,8 +998,7 @@ static bool mf_ul_check_lock(MfUltralightEmulator* emulator, int16_t write_page)
|
|||
shift = (write_page - 16) / 32;
|
||||
break;
|
||||
default:
|
||||
furi_assert(false);
|
||||
shift = 0;
|
||||
furi_crash("Unknown MFUL");
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -1177,8 +1175,7 @@ static void mf_ul_emulate_write(
|
|||
block_lock_count = 8;
|
||||
break;
|
||||
default:
|
||||
furi_assert(false);
|
||||
block_lock_count = 0;
|
||||
furi_crash("Unknown MFUL");
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue