GET_RESPONSE_DATA fix
This commit is contained in:
parent
c4e327423f
commit
19ebf447d6
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ using namespace Transport;
|
|||
|
||||
class SpectrumNetworkPlugin;
|
||||
|
||||
#define GET_RESPONSE_DATA(RESP, DATA) (RESP.find(DATA) != std::string::npos ? RESP.substr(RESP.find(DATA) + strlen(DATA) + 1) : "");
|
||||
#define GET_RESPONSE_DATA(RESP, DATA) ((RESP.find(std::string(DATA) + " ") != std::string::npos) ? RESP.substr(RESP.find(DATA) + strlen(DATA) + 1) : "");
|
||||
#define GET_PROPERTY(VAR, OBJ, WHICH, PROP) std::string VAR = sk->send_command(std::string("GET ") + OBJ + " " + WHICH + " " + PROP); \
|
||||
VAR = GET_RESPONSE_DATA(VAR, PROP);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue