From de2534a8901d49fa784b4fb9bed8bc0abc744fb2 Mon Sep 17 00:00:00 2001 From: Valentin Dabstep Date: Mon, 12 May 2025 16:37:21 +0300 Subject: [PATCH] Fix test --- controller/fw/embed/src/main.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/controller/fw/embed/src/main.cpp b/controller/fw/embed/src/main.cpp index b8eaaef..ba42018 100644 --- a/controller/fw/embed/src/main.cpp +++ b/controller/fw/embed/src/main.cpp @@ -386,15 +386,14 @@ void foc_step(BLDCMotor *motor, Commander *commander) { Can.setBaudRate(1000000); // Настройка прерываний CAN CAN2->IER |= CAN_IER_FMPIE0; + + flash_rec = load_params(); + /* For test */ + int value = 73; //addr + write_param(addr_id,value); //for update address in firmware // Load parameters from flash flash_rec = load_params(); - - /* For test */ - int value = 0; //addr - write_param(addr_id,value); //for update address in firmware - - for(int i = 0;i < PARAM_COUNT;i++) flash_buf[i] = flash_rec[i];