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

Last changes in cli.cpp thanks to functions add in syringefilled.cpp

parent a8557058
No related branches found
No related tags found
1 merge request!17Malaurie's work on UI + CLI interface + AccelStepper interface
......@@ -104,12 +104,12 @@ void Cli::answer (bool ok, const String& error_message) const
Serial.printf(" (%s)", error_message.c_str());
Serial.printf("\n");
}
/* VARIABLE EMERGENCY QUI N'EXISTE PLUS, A VOIR S'IL FAUT LA REMETTRE
void Cli::checkEmergency ()
{
if (syringe_filled.emergency())
if (syringe_filled.get_emergency())
Serial.printf("%sin EMERGENCY state, try NLCK command\n", _msgHeader);
}*/
}
void Cli::loop (Stream& input)
{
......@@ -127,8 +127,6 @@ void Cli::loop (Stream& input)
resetNextWord();
//Syringe::Syringe_configuration_t conf = syringe.configuration(); //LES CONFIGURATION DE CE TYPE N'EXISTE PLUS
if (findNextWord())
{
if (kw(F("AT")))
......@@ -309,11 +307,11 @@ void Cli::loop (Stream& input)
syringe_filled.go_to_zero();
answer(true);
}
/* else if (kw(F("NLCK"))) Fonction que j'ai supprimé en pensant que a servirait pas
else if (kw(F("NLCK"))) //*******************RUN_FROM_EMERGENCY*******************//
{
syringe.runFromEmergency();
syringe_filled.run_from_emergency();
answer(true);
}*/
}
else if (kw(F("CLKW"))) //*******************CLOCKWISE_EQUALS_PUSH*******************//
{
copyNextToTemp();
......
......@@ -249,7 +249,7 @@ if (get_emergency())
}
//CONFIGURATION
bool SyringeFilled :: check_configuration()
/***
......
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