mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-06-07 19:01:54 -07:00
Merge branch 'dev' of https://github.com/DarkFlippers/unleashed-firmware into mntm-dev
This commit is contained in:
@@ -68,6 +68,7 @@ bool iso14443_4_layer_decode_block(
|
||||
|
||||
do {
|
||||
if(!bit_buffer_starts_with_byte(block_data, instance->pcb_prev)) break;
|
||||
// TODO: Fix crash
|
||||
bit_buffer_copy_right(output_data, block_data, 1);
|
||||
ret = true;
|
||||
} while(false);
|
||||
|
||||
@@ -429,6 +429,9 @@ static bool
|
||||
(strcmp(instance->manufacture_name, "Dea_Mio") == 0)) {
|
||||
klq_last_custom_btn = 0xF;
|
||||
}
|
||||
if((strcmp(instance->manufacture_name, "FAAC_RC,XT") == 0)) {
|
||||
klq_last_custom_btn = 0xB;
|
||||
}
|
||||
|
||||
btn = subghz_protocol_keeloq_get_btn_code(klq_last_custom_btn);
|
||||
|
||||
|
||||
@@ -58,6 +58,7 @@ void bit_buffer_copy_right(BitBuffer* buf, const BitBuffer* other, size_t start_
|
||||
furi_check(buf);
|
||||
furi_check(other);
|
||||
furi_check(bit_buffer_get_size_bytes(other) > start_index);
|
||||
// TODO: Fix crash
|
||||
furi_check(buf->capacity_bytes >= bit_buffer_get_size_bytes(other) - start_index);
|
||||
|
||||
memcpy(buf->data, other->data + start_index, bit_buffer_get_size_bytes(other) - start_index);
|
||||
|
||||
Reference in New Issue
Block a user