Initialize EEPROM in at start of program

This commit is contained in:
Mario Hüttel 2021-01-02 23:04:57 +01:00
parent 95bd606dd8
commit 0e233a257c

View File

@ -46,6 +46,7 @@
#include <reflow-controller/safety/safety-memory.h>
#include <reflow-controller/safety/fault.h>
#include <reflow-controller/updater/updater.h>
#include <reflow-controller/settings/spi-eeprom.h>
static void setup_nvic_priorities(void)
{
@ -178,6 +179,7 @@ static inline void setup_system(void)
loudspeaker_setup();
gui_init();
uart_gpio_config();
spi_eeprom_init();
handle_boot_status();
@ -240,10 +242,9 @@ int main(void)
if (oven_pid_get_status() == OVEN_PID_RUNNING) {
oven_pid_handle();
}
oven_driver_apply_power_level();
safety_controller_report_timing(ERR_TIMING_MAIN_LOOP);
if (menu_wait_request)
__WFI();
else