|
From: <gb...@us...> - 2008-06-25 13:55:33
|
Revision: 215
http://gearbox.svn.sourceforge.net/gearbox/?rev=215&view=rev
Author: gbiggs
Date: 2008-06-25 06:54:53 -0700 (Wed, 25 Jun 2008)
Log Message:
-----------
Fixed problem with not reading a complete error response message
Modified Paths:
--------------
gearbox/trunk/submitted/hokuyo_aist/hokuyo_aist.cpp
Modified: gearbox/trunk/submitted/hokuyo_aist/hokuyo_aist.cpp
===================================================================
--- gearbox/trunk/submitted/hokuyo_aist/hokuyo_aist.cpp 2008-06-25 09:07:15 UTC (rev 214)
+++ gearbox/trunk/submitted/hokuyo_aist/hokuyo_aist.cpp 2008-06-25 13:54:53 UTC (rev 215)
@@ -1523,6 +1523,8 @@
{
if (response[statusIndex] != extraOK[0])
{
+ // There is an extra line feed after an error status (signalling end of message)
+ SkipLines (1);
stringstream ss;
ss << "Bad response to " << cmd[0] << " command: " << " " <<
SCIP1ErrorToString (response[statusIndex], cmd[0]);
@@ -1531,6 +1533,8 @@
}
else
{
+ // There is an extra line feed after an error status (signalling end of message)
+ SkipLines (1);
stringstream ss;
ss << "Bad response to " << cmd[0] << " command: " << response[statusIndex] <<
" " << SCIP1ErrorToString (response[statusIndex], cmd[0]);
@@ -1593,6 +1597,8 @@
{
if (response[0] != extraOK[0] || response[1] != extraOK[1])
{
+ // There is an extra line feed after an error status (signalling end of message)
+ SkipLines (1);
stringstream ss;
ss << "Bad response to " << cmd << " command: " << response[0] << response[1] <<
" " << SCIP2ErrorToString (response, cmd);
@@ -1601,6 +1607,8 @@
}
else
{
+ // There is an extra line feed after an error status (signalling end of message)
+ SkipLines (1);
stringstream ss;
ss << "Bad response to " << cmd << " command: " << response[0] << response[1] <<
" " << SCIP2ErrorToString (response, cmd);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|