mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-20 04:54:45 -07:00
Fix FileCompat, Small fixes
This commit is contained in:
@@ -29,7 +29,11 @@ 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_bool(file, "show_mac", &state.show_mac, 1)) break;
|
||||
if(!flipper_format_read_bool(file, "show_mac", &state.show_mac, 1)) {
|
||||
// Support migrating from old config
|
||||
state.show_mac = false;
|
||||
flipper_format_rewind(file);
|
||||
}
|
||||
|
||||
if(!flipper_format_read_uint32(file, "tag_type", &tmp, 1)) {
|
||||
// Support migrating from old config
|
||||
@@ -104,7 +108,6 @@ void findmy_state_apply(FindMyState* state) {
|
||||
furi_check(
|
||||
furi_hal_bt_extra_beacon_set_data(state->data, findmy_state_data_size(state->tag_type)));
|
||||
|
||||
|
||||
if(state->beacon_active) {
|
||||
furi_check(furi_hal_bt_extra_beacon_start());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user