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

@ -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;

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);

View File

@ -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;

View File

@ -329,7 +329,7 @@ int OrdHVPSReading(Ascon *a) {
* sorts replies into standard responses of
* <value>
* OK
* ASCERR:...
* ASCERR: ...
*/
int OrdHVPSProtHandler(Ascon *a) {
int ret;

View File

@ -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;