Added registration of new functions
This commit is contained in:
@@ -20,7 +20,9 @@ private:
|
||||
String received;
|
||||
String command;
|
||||
|
||||
// Callback handlers for specific commands
|
||||
///////////////////////////////////////////
|
||||
/// Command Handlers ///
|
||||
/////////////////////////////////////////
|
||||
void (*calibrationBeginHandler)(String args);
|
||||
void (*calibrationInteruptHandler)(String args);
|
||||
|
||||
@@ -102,7 +104,9 @@ public:
|
||||
*/
|
||||
void cycle();
|
||||
|
||||
// Register a callbacks for specific commands.
|
||||
///////////////////////////////////////////
|
||||
/// Command Handlers Registers ///
|
||||
/////////////////////////////////////////
|
||||
void onCalibrationBegin(void (*handler)(String args));
|
||||
void onCalibrationInterupt(void (*handler)(String args));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user