mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
add button with name (wo number)
This commit is contained in:
@@ -31,7 +31,8 @@ StringCommand::StringCommand()
|
||||
commandCount(0),
|
||||
defaultHandler(NULL),
|
||||
term('\n'), // default terminator for commands, newline character
|
||||
last(NULL)
|
||||
last(NULL),
|
||||
main(NULL)
|
||||
{
|
||||
strcpy(delim, " "); // strtok_r needs a null-terminated string
|
||||
clearBuffer();
|
||||
@@ -130,3 +131,7 @@ void StringCommand::clearBuffer() {
|
||||
char *StringCommand::next() {
|
||||
return strtok_r(NULL, delim, &last);
|
||||
}
|
||||
|
||||
char *StringCommand::order() {
|
||||
return strtok_r(buffer, delim, &main);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user