- merged "offline" and "disconnected" stati

This commit is contained in:
2018-07-03 11:14:18 +02:00
parent 6085b22c18
commit aac014618c
2 changed files with 55 additions and 19 deletions

View File

@ -254,7 +254,7 @@ int DevQueueTask(void *ds)
LogResponse(devser,0);
}
} else if (devser->status == AsconOffline) {
replyData = "ASCERR: offline";
replyData = "ASCERR: disconnected";
} else {
return 1;
}
@ -602,7 +602,7 @@ char *DevStatus(DevSer *devser) {
if (strncmp(str, "ASCERR: ", 8) == 0) {
str += 8;
}
pos = strchr(str, '(');
pos = strstr(str, " (");
if (pos != 0) {
snprintf(buf, sizeof buf, "%s", str);
buf[pos-str] = 0;