farmbot-arduino-firmware/src/F20Handler.cpp

34 lines
472 B
C++
Raw Normal View History

2014-08-06 16:04:40 -06:00
/*
* F20Handler.cpp
*
* Created on: 15 maj 2014
* Author: MattLech
*/
#include "F20Handler.h"
2017-04-19 08:12:12 -06:00
static F20Handler *instance;
F20Handler *F20Handler::getInstance()
{
if (!instance)
{
instance = new F20Handler();
};
return instance;
};
F20Handler::F20Handler()
{
2014-08-06 16:04:40 -06:00
}
2017-04-19 08:12:12 -06:00
int F20Handler::execute(Command *command)
{
2014-08-06 16:04:40 -06:00
2017-04-19 08:12:12 -06:00
ParameterList::getInstance()->readAllValues();
Serial.print("R20");
CurrentState::getInstance()->printQAndNewLine();
2014-08-06 16:04:40 -06:00
return 0;
2014-08-06 16:04:40 -06:00
}