This commit is contained in:
16
src/main.cpp
16
src/main.cpp
@ -67,4 +67,20 @@ void loop()
|
||||
String input = Serial.readStringUntil('\n');
|
||||
cmd_handler.parseJSON(input.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Wrapper around arduino setup/loop functions
|
||||
*
|
||||
* This mitigates static code analysis warnings.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
int main()
|
||||
{
|
||||
setup();
|
||||
while(1)
|
||||
{
|
||||
loop();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user