Skip to content
Snippets Groups Projects
Commit b534689a authored by Malaurie Bernard's avatar Malaurie Bernard
Browse files

Ajout d'une fonction booléenne pour savoir si le moteur tourne (dans...

Ajout d'une fonction booléenne pour savoir si le moteur tourne (dans l'objectif de noter l'état du moteur sur l'interface graphique).
parent 9c76a2ac
No related branches found
No related tags found
1 merge request!17Malaurie's work on UI + CLI interface + AccelStepper interface
......@@ -76,6 +76,11 @@ public:
#endif
}
bool motorIsRunning () //return true if the motor is currently running
{
return (stepper.speed() != 0);
}
void setAccelMmPerSecPerSec (float mmPerSecPerSec)
{
if (mmPerSecPerSec == 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment