From 54472353ca7c13663fcf864a8969a0309cfc73f0 Mon Sep 17 00:00:00 2001 From: Matthew Date: Sat, 27 Apr 2024 13:13:56 -0400 Subject: [PATCH] Fix Tile Tag Saving & Rewind --- applications/system/findmy/findmy_state.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/applications/system/findmy/findmy_state.c b/applications/system/findmy/findmy_state.c index d921f8d582..ea8ddafaef 100644 --- a/applications/system/findmy/findmy_state.c +++ b/applications/system/findmy/findmy_state.c @@ -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