Script Context layers test for "ASCERR: " and the space is significant.

Update code and comments to reflect that
This commit is contained in:
Douglas Clowes
2013-07-04 15:46:29 +10:00
parent 6a672d3a8b
commit 1e1fce78be
5 changed files with 10 additions and 10 deletions

View File

@@ -219,13 +219,13 @@ int ModbusReading(Ascon *a) {
rlen = snprintf(temp, 64, "OK float");
}
else if (((unsigned int)cp[7]) == 0x83) {
rlen = snprintf(temp, 64, "ASCERR:%02x:%d", cp[7], cp[8]);
rlen = snprintf(temp, 64, "ASCERR: %02x:%d", cp[7], cp[8]);
}
else if (((unsigned int)cp[7]) == 0x90) {
rlen = snprintf(temp, 64, "ASCERR:%02x:%d", cp[7], cp[8]);
rlen = snprintf(temp, 64, "ASCERR: %02x:%d", cp[7], cp[8]);
}
else {
rlen = snprintf(temp, 64, "ASCERR:%02x:%d", cp[7], cp[8]);
rlen = snprintf(temp, 64, "ASCERR: %02x:%d", cp[7], cp[8]);
}
if (debug_modbus > 0) {
dbgprintx("modbus-xi", cp, blen);