Merge branch 'fz-dev' into dev

This commit is contained in:
MX 2022-08-27 02:06:06 +03:00
commit 66e361714f
No known key found for this signature in database
GPG key ID: 6C4C311DFD4B4AB5
2 changed files with 5 additions and 8 deletions

View file

@ -254,7 +254,7 @@ static void
session_register_page = 234; session_register_page = 234;
break; break;
default: default:
furi_assert(false); furi_crash("Unknown MFUL");
break; break;
} }

View file

@ -940,7 +940,7 @@ static bool mf_ul_check_lock(MfUltralightEmulator* emulator, int16_t write_page)
if(write_page >= 512) return true; if(write_page >= 512) return true;
break; break;
default: default:
furi_assert(false); furi_crash("Unknown MFUL");
return true; return true;
} }
@ -967,8 +967,7 @@ static bool mf_ul_check_lock(MfUltralightEmulator* emulator, int16_t write_page)
else if(write_page == 41) else if(write_page == 41)
shift = 12; shift = 12;
else { else {
furi_assert(false); furi_crash("Unknown MFUL");
shift = 0;
} }
break; break;
@ -999,8 +998,7 @@ static bool mf_ul_check_lock(MfUltralightEmulator* emulator, int16_t write_page)
shift = (write_page - 16) / 32; shift = (write_page - 16) / 32;
break; break;
default: default:
furi_assert(false); furi_crash("Unknown MFUL");
shift = 0;
break; break;
} }
@ -1177,8 +1175,7 @@ static void mf_ul_emulate_write(
block_lock_count = 8; block_lock_count = 8;
break; break;
default: default:
furi_assert(false); furi_crash("Unknown MFUL");
block_lock_count = 0;
break; break;
} }