Fix FileCompat, Small fixes

This commit is contained in:
Matthew
2024-03-28 17:45:14 -04:00
parent a6b84847ac
commit 9f20389fc6
3 changed files with 9 additions and 15 deletions

View File

@@ -8,7 +8,6 @@ enum VarItemListIndex {
VarItemListIndexAbout,
};
void findmy_scene_config_broadcast_interval_changed(VariableItem* item) {
FindMy* app = variable_item_get_context(item);
uint8_t index = variable_item_get_current_value_index(item);
@@ -33,7 +32,7 @@ void findmy_scene_config_show_mac(VariableItem* item) {
FindMy* app = variable_item_get_context(item);
uint8_t index = variable_item_get_current_value_index(item);
findmy_toggle_show_mac(app, index);
if (app->state.show_mac == true) {
if(app->state.show_mac == true) {
variable_item_set_current_value_text(item, "Yes");
} else {
variable_item_set_current_value_text(item, "No");
@@ -75,11 +74,7 @@ void findmy_scene_config_on_enter(void* context) {
item = variable_item_list_add(var_item_list, "Show MAC", 2, findmy_scene_config_show_mac, app);
variable_item_set_current_value_index(item, app->state.show_mac);
if(app->state.show_mac == true)
variable_item_set_current_value_text(item, "Yes");
else
variable_item_set_current_value_text(item, "No");
variable_item_set_current_value_text(item, app->state.show_mac ? "Yes" : "No");
item = variable_item_list_add(
var_item_list,