Script Context layers test for "ASCERR: " and the space is significant.
Update code and comments to reflect that
This commit is contained in:
@ -27,7 +27,7 @@ int GalilWriteStart(Ascon *a) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
/** @brief Map galil replies to OK, ASCERR:..., value.
|
||||
/** @brief Map galil replies to OK, ASCERR: ..., value.
|
||||
* You can use the first character to sort replies from a galil controller
|
||||
* into four categories
|
||||
* First character is,
|
||||
@ -95,7 +95,7 @@ int GalilReading(Ascon *a) {
|
||||
* sorts replies into standard responses of
|
||||
* <value>
|
||||
* OK
|
||||
* ASCERR:...
|
||||
* ASCERR: ...
|
||||
*/
|
||||
int GalilProtHandler(Ascon *a) {
|
||||
int ret;
|
||||
|
@ -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);
|
||||
|
@ -102,7 +102,7 @@ int NewportWriting(Ascon *a) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
/** @brief Map replies to OK, ASCERR:..., value.
|
||||
/** @brief Map replies to OK, ASCERR: ..., value.
|
||||
* You can not use the first character to sort replies from a Newport controller
|
||||
*/
|
||||
int NewportReading(Ascon *a) {
|
||||
@ -163,7 +163,7 @@ int NewportReading(Ascon *a) {
|
||||
* sorts replies into standard responses of
|
||||
* <value>
|
||||
* OK
|
||||
* ASCERR:...
|
||||
* ASCERR: ...
|
||||
*/
|
||||
int NewportProtHandler(Ascon *a) {
|
||||
int ret;
|
||||
|
@ -329,7 +329,7 @@ int OrdHVPSReading(Ascon *a) {
|
||||
* sorts replies into standard responses of
|
||||
* <value>
|
||||
* OK
|
||||
* ASCERR:...
|
||||
* ASCERR: ...
|
||||
*/
|
||||
int OrdHVPSProtHandler(Ascon *a) {
|
||||
int ret;
|
||||
|
@ -107,7 +107,7 @@ int OxfordWriting(Ascon *a) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
/** @brief Map oxford replies to OK, ASCERR:..., value.
|
||||
/** @brief Map oxford replies to OK, ASCERR: ..., value.
|
||||
* You can use the first character to sort replies from a oxford controller
|
||||
*/
|
||||
int OxfordReading(Ascon *a) {
|
||||
@ -181,7 +181,7 @@ int OxfordReading(Ascon *a) {
|
||||
* sorts replies into standard responses of
|
||||
* <value>
|
||||
* OK
|
||||
* ASCERR:...
|
||||
* ASCERR: ...
|
||||
*/
|
||||
int OxfordProtHandler(Ascon *a) {
|
||||
int ret;
|
||||
|
Reference in New Issue
Block a user