Oh, fucking shit! It's seems like it's works!!!

This commit is contained in:
Edward Emelianov
2023-03-02 21:49:32 +03:00
parent bbcc4f18f4
commit 64aac0d9fa
6 changed files with 14 additions and 9 deletions

View File

@@ -18,6 +18,7 @@
#include "flash.h"
#include "hardware.h"
#include "pdnuart.h"
#include "proto.h"
#include "steppers.h"
#include "strfunc.h"
@@ -82,6 +83,13 @@ void update_stepper(uint8_t i){
accdecsteps[i] = (the_conf.maxspd[i] * the_conf.maxspd[i]) / the_conf.accel[i] / 2;
ustepsshift[i] = MSB(the_conf.microsteps[i]);
ESW_reaction[i] = the_conf.ESW_reaction[i];
switch(the_conf.motflags[i].drvtype){
case DRVTYPE_UART:
pdnuart_init(i);
break;
default:
break;
}
}
// run this function after each steppers parameters changing