[FL-1320] Fix archive memleak (#565)

* iButton: fix timer initialization
* Archive: fix strings memleak
* Archive: optimize string handling
* Archive: fix strings non-memleak
This commit is contained in:
SG
2021-07-05 22:34:58 +10:00
committed by GitHub
parent 29da0e360c
commit f153a745eb
2 changed files with 30 additions and 31 deletions

View File

@@ -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);
}