Add write param for test
This commit is contained in:
parent
ef911e5cb3
commit
ede8525164
1 changed files with 7 additions and 0 deletions
|
@ -388,6 +388,13 @@ void foc_step(BLDCMotor *motor, Commander *commander) {
|
|||
CAN2->IER |= CAN_IER_FMPIE0;
|
||||
// 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];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue