diff options
author | SG <who.just.the.doctor@gmail.com> | 2021-07-05 15:34:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-05 15:34:58 +0300 |
commit | f153a745eba650fbf199fa9d5dbcbba7c0f69012 (patch) | |
tree | 6c63b3b69075539a2c4cbde38bbbc51bce592d15 /applications/ibutton | |
parent | 29da0e360c5b09695b94d9277fb54e4da9a60103 (diff) |
[FL-1320] Fix archive memleak (#565)
* iButton: fix timer initialization
* Archive: fix strings memleak
* Archive: optimize string handling
* Archive: fix strings non-memleak
Diffstat (limited to 'applications/ibutton')
-rw-r--r-- | applications/ibutton/helpers/pulse-sequencer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/applications/ibutton/helpers/pulse-sequencer.cpp b/applications/ibutton/helpers/pulse-sequencer.cpp index efe00d7b..c7637b4d 100644 --- a/applications/ibutton/helpers/pulse-sequencer.cpp +++ b/applications/ibutton/helpers/pulse-sequencer.cpp @@ -16,11 +16,11 @@ void PulseSequencer::start() { callback_pointer = cbc::obtain_connector(this, &PulseSequencer::timer_elapsed_callback); api_interrupt_add(callback_pointer, InterruptTypeTimerUpdate, this); + period_index = 1; init_timer(periods[period_index]); pin_state = pin_start_state; hal_gpio_write(&ibutton_gpio, pin_state); pin_state = !pin_state; - period_index = 1; HAL_TIM_Base_Start_IT(&htim1); } |