Skip to content

Commit

Permalink
Fix Tile Tag Saving & Rewind
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewKuKanich committed Apr 27, 2024
1 parent 9e15217 commit 5447235
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions applications/system/findmy/findmy_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ bool findmy_state_load(FindMyState* out_state) {
if(!flipper_format_read_uint32(file, "transmit_power", &tmp, 1)) break;
state.transmit_power = tmp;

if(!flipper_format_read_uint32(file, "tag_type", &tmp, 1)) break;
if(!flipper_format_read_uint32(file, "tag_type", &tmp, 1)) {
tmp = FindMyTypeApple;
flipper_format_rewind(file);
}
state.tag_type = tmp;
FURI_LOG_E("tag_type tmp", "%ld", tmp);


if(!flipper_format_read_bool(file, "show_mac", &state.show_mac, 1)) {
// Support migrating from old config
Expand Down

0 comments on commit 5447235

Please sign in to comment.