Kludge with 'tone' of steppers. Gives ferror, but nice tone

This commit is contained in:
Hakan Bastedt
2024-01-21 23:29:59 +01:00
parent 6ac0949f26
commit b534e3d4da
3 changed files with 10 additions and 6 deletions

View File

@@ -177,6 +177,5 @@ uint16_t dc_checker(void)
// Indicate we run DC
ESCvar.dcsync = 1;
StepGen::sync0CycleTime = ESC_SYNC0cycletime() / 1000; // usecs
StepGen::pwmCycleTime = 10 * StepGen::sync0CycleTime;
return 0;
}