Script Context layers test for "ASCERR: " and the space is significant.
Update code and comments to reflect that
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user