mirror of
https://github.com/jtgans/g13gui.git
synced 2025-06-20 08:23:50 -04:00
fix extra space in stickzone command parse
This commit is contained in:
parent
309fca23e7
commit
cb5ce58ee6
6
g13.cc
6
g13.cc
@ -683,6 +683,8 @@ void G13_KeyPad::command(char const *str) {
|
|||||||
char c;
|
char c;
|
||||||
const char *remainder = str;
|
const char *remainder = str;
|
||||||
|
|
||||||
|
try {
|
||||||
|
|
||||||
std::string cmd;
|
std::string cmd;
|
||||||
advance( remainder, cmd );
|
advance( remainder, cmd );
|
||||||
|
|
||||||
@ -780,6 +782,10 @@ void G13_KeyPad::command(char const *str) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
catch (const std::exception &ex) {
|
||||||
|
cerr << "command failed : " << ex.what() << endl;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(sscanf(str, "rgb %i %i %i", &red, &green, &blue) == 3) {
|
if(sscanf(str, "rgb %i %i %i", &red, &green, &blue) == 3) {
|
||||||
|
Loading…
Reference in New Issue
Block a user