Fix naming was different from OFW

This commit is contained in:
MX 2022-12-11 00:09:38 +03:00
parent ebf39f189d
commit 63b40992ef
No known key found for this signature in database
GPG key ID: 6C4C311DFD4B4AB5
4 changed files with 8 additions and 8 deletions

View file

@ -38,11 +38,6 @@ InfraredBruteForce* infrared_brute_force_alloc() {
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) {
furi_assert(!brute_force->is_started);
InfraredBruteForceRecordDict_clear(brute_force->records);
@ -151,3 +146,8 @@ void infrared_brute_force_add_record(
InfraredBruteForceRecordDict_set_at(brute_force->records, key, value);
furi_string_free(key);
}
void infrared_brute_force_reset(InfraredBruteForce* brute_force) {
furi_assert(!brute_force->is_started);
InfraredBruteForceRecordDict_reset(brute_force->records);
}

View file

@ -16,7 +16,7 @@ bool infrared_brute_force_start(
bool infrared_brute_force_is_started(InfraredBruteForce* brute_force);
void infrared_brute_force_stop(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(
InfraredBruteForce* brute_force,
uint32_t index,

View file

@ -453,7 +453,7 @@ static void
} while(false);
furi_string_free(remote_path);
infrared_brute_force_clear_records(brute_force);
infrared_brute_force_reset(brute_force);
infrared_brute_force_free(brute_force);
}

View file

@ -87,6 +87,6 @@ void infrared_scene_universal_common_on_exit(void* context) {
Infrared* infrared = context;
ButtonPanel* button_panel = infrared->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);
}