Browse Source

BUG: alarm str is all 0, must term status reset idle

master
qshi 7 years ago
parent
commit
2c37abf965
  1. BIN
      host/opt/bin/zkb
  2. 4
      src/ccodec.c

BIN
host/opt/bin/zkb

Binary file not shown.

4
src/ccodec.c

@ -80,8 +80,10 @@ static int __term_alarm_conv(ccodec_t cc, struct ccodec_term *cct)
if (cct->alarm_str[len] == 0)
break;
if (len <= 0) /* no message */
if (len <= 0) { /* no message */
cct->status = ts_idle; //20171214: status must reset idle
return 0;
}
op = (char*)(buf + idx + 2);
#ifdef ENABLE_UTF8

Loading…
Cancel
Save