Skip to content

Commit 8d2163c

Browse files
committed
FORD: Update PSF with new BS and CRC after TX
1 parent 78e8673 commit 8d2163c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

protocols/ford_v0.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,14 @@ SubGhzProtocolStatus
637637
break;
638638
}
639639

640+
//Update the PSF file, since we have overwritten the COUNTER and BUTTON
641+
//This makes the file's nummers wrong, and fails tests. It wasnt causing a TX bug, but manual tests failed.
642+
flipper_format_rewind(flipper_format);
643+
uint32_t temp = calculated_crc;
644+
flipper_format_insert_or_update_uint32(flipper_format, "CRC", &temp, 1);
645+
temp = instance->bs;
646+
flipper_format_insert_or_update_uint32(flipper_format, "BS", &temp, 1);
647+
640648
instance->encoder.is_running = true;
641649

642650
FURI_LOG_I(

0 commit comments

Comments
 (0)