Skip to content

Commit

Permalink
Merge pull request #112 from AlkaMotors/fix/dutycyclemode
Browse files Browse the repository at this point in the history
Add fixed speed mode to setInput
  • Loading branch information
AlkaMotors authored Nov 9, 2024
2 parents ad5adc7 + 82077d1 commit bbc7e8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ void commutate()
}
__enable_irq();
changeCompInput();
if (average_interval > 1700) {
if (average_interval > 2500) {
old_routine = 1;
}
bemfcounter = 0;
Expand Down Expand Up @@ -1804,7 +1804,7 @@ int main(void)


while (1) {
#ifdef FIXED_DUTY_MODE
#if defined(FIXED_DUTY_MODE) || defined(FIXED_SPEED_MODE)
setInput();
#endif
#ifdef MCU_F031
Expand Down

0 comments on commit bbc7e8c

Please sign in to comment.