mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-27 06:50:21 +00:00
Fix naming was different from OFW
This commit is contained in:
parent
ebf39f189d
commit
63b40992ef
4 changed files with 8 additions and 8 deletions
|
@ -38,11 +38,6 @@ InfraredBruteForce* infrared_brute_force_alloc() {
|
||||||
return brute_force;
|
return brute_force;
|
||||||
}
|
}
|
||||||
|
|
||||||
void infrared_brute_force_clear_records(InfraredBruteForce* brute_force) {
|
|
||||||
furi_assert(!brute_force->is_started);
|
|
||||||
InfraredBruteForceRecordDict_reset(brute_force->records);
|
|
||||||
}
|
|
||||||
|
|
||||||
void infrared_brute_force_free(InfraredBruteForce* brute_force) {
|
void infrared_brute_force_free(InfraredBruteForce* brute_force) {
|
||||||
furi_assert(!brute_force->is_started);
|
furi_assert(!brute_force->is_started);
|
||||||
InfraredBruteForceRecordDict_clear(brute_force->records);
|
InfraredBruteForceRecordDict_clear(brute_force->records);
|
||||||
|
@ -151,3 +146,8 @@ void infrared_brute_force_add_record(
|
||||||
InfraredBruteForceRecordDict_set_at(brute_force->records, key, value);
|
InfraredBruteForceRecordDict_set_at(brute_force->records, key, value);
|
||||||
furi_string_free(key);
|
furi_string_free(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void infrared_brute_force_reset(InfraredBruteForce* brute_force) {
|
||||||
|
furi_assert(!brute_force->is_started);
|
||||||
|
InfraredBruteForceRecordDict_reset(brute_force->records);
|
||||||
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ bool infrared_brute_force_start(
|
||||||
bool infrared_brute_force_is_started(InfraredBruteForce* brute_force);
|
bool infrared_brute_force_is_started(InfraredBruteForce* brute_force);
|
||||||
void infrared_brute_force_stop(InfraredBruteForce* brute_force);
|
void infrared_brute_force_stop(InfraredBruteForce* brute_force);
|
||||||
bool infrared_brute_force_send_next(InfraredBruteForce* brute_force);
|
bool infrared_brute_force_send_next(InfraredBruteForce* brute_force);
|
||||||
void infrared_brute_force_clear_records(InfraredBruteForce* brute_force);
|
void infrared_brute_force_reset(InfraredBruteForce* brute_force);
|
||||||
void infrared_brute_force_add_record(
|
void infrared_brute_force_add_record(
|
||||||
InfraredBruteForce* brute_force,
|
InfraredBruteForce* brute_force,
|
||||||
uint32_t index,
|
uint32_t index,
|
||||||
|
|
|
@ -453,7 +453,7 @@ static void
|
||||||
} while(false);
|
} while(false);
|
||||||
|
|
||||||
furi_string_free(remote_path);
|
furi_string_free(remote_path);
|
||||||
infrared_brute_force_clear_records(brute_force);
|
infrared_brute_force_reset(brute_force);
|
||||||
infrared_brute_force_free(brute_force);
|
infrared_brute_force_free(brute_force);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -87,6 +87,6 @@ void infrared_scene_universal_common_on_exit(void* context) {
|
||||||
Infrared* infrared = context;
|
Infrared* infrared = context;
|
||||||
ButtonPanel* button_panel = infrared->button_panel;
|
ButtonPanel* button_panel = infrared->button_panel;
|
||||||
view_stack_remove_view(infrared->view_stack, button_panel_get_view(button_panel));
|
view_stack_remove_view(infrared->view_stack, button_panel_get_view(button_panel));
|
||||||
infrared_brute_force_clear_records(infrared->brute_force);
|
infrared_brute_force_reset(infrared->brute_force);
|
||||||
button_panel_reset(button_panel);
|
button_panel_reset(button_panel);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue