Format + cleanup

This commit is contained in:
Willy-JL
2024-03-08 18:59:13 +00:00
parent aa15ee6fbc
commit 1941da7fd6
5 changed files with 22 additions and 15 deletions

View File

@@ -58,7 +58,12 @@ void findmy_scene_config_on_enter(void* context) {
variable_item_set_current_value_text(item, transmit_power_s);
item = variable_item_list_add(var_item_list, "Register Tag", 0, NULL, NULL);
item = variable_item_list_add(var_item_list, "Matthew KuKanich, Thanks to Chapoly1305, WillyJL, OpenHaystack, Testers", 1, NULL, NULL);
item = variable_item_list_add(
var_item_list,
"Matthew KuKanich, Thanks to Chapoly1305, WillyJL, OpenHaystack, Testers",
1,
NULL,
NULL);
variable_item_set_current_value_text(item, "Credits");
variable_item_list_set_enter_callback(var_item_list, findmy_scene_config_callback, app);

View File

@@ -56,5 +56,4 @@ void findmy_scene_config_mac_on_exit(void* context) {
byte_input_set_result_callback(app->byte_input, NULL, NULL, NULL, NULL, 0);
byte_input_set_header_text(app->byte_input, "");
}

View File

@@ -40,8 +40,9 @@ bool findmy_scene_config_packet_on_event(void* context, SceneManagerEvent event)
case ByteInputResultOk:
scene_manager_search_and_switch_to_previous_scene(
app->scene_manager, FindMySceneConfig);
furi_check(furi_hal_bt_extra_beacon_set_data(app->packet_buf, sizeof(app->packet_buf)));
if (app->packet_buf[0] == 0x1E && app->packet_buf[3] == 0x00) {
furi_check(
furi_hal_bt_extra_beacon_set_data(app->packet_buf, sizeof(app->packet_buf)));
if(app->packet_buf[0] == 0x1E && app->packet_buf[3] == 0x00) {
app->apple = true; // Checks payload data for Apple identifier
} else {
app->apple = false;