fix div by 0 bug

This commit is contained in:
2025-05-12 02:23:20 +02:00
parent 9852548a10
commit 29611f6d43
2 changed files with 31 additions and 16 deletions

View File

@@ -10,7 +10,7 @@ typedef struct {
GPIO_TypeDef* home_port;
uint8_t home_pin;
uint8_t homed:1;
uint8_t moving:1;
uint8_t trigger_step:1;
int16_t pos;
int16_t speed;
int16_t ramp_to_speed;