|
From: <rus...@us...> - 2008-06-09 08:24:52
|
Revision: 174
http://gearbox.svn.sourceforge.net/gearbox/?rev=174&view=rev
Author: russo2503v
Date: 2008-06-09 01:25:01 -0700 (Mon, 09 Jun 2008)
Log Message:
-----------
resetting hex
Modified Paths:
--------------
gearbox/trunk/src/gbxgarminacfr/driver.cpp
gearbox/trunk/src/gbxgarminacfr/nmea.cpp
Modified: gearbox/trunk/src/gbxgarminacfr/driver.cpp
===================================================================
--- gearbox/trunk/src/gbxgarminacfr/driver.cpp 2008-06-09 08:22:40 UTC (rev 173)
+++ gearbox/trunk/src/gbxgarminacfr/driver.cpp 2008-06-09 08:25:01 UTC (rev 174)
@@ -311,7 +311,7 @@
for ( string::iterator it=serialData.begin(); it!=serialData.end()-2; ++it ) {
if ( iscntrl( *it ) ) {
// debug
- cout<<now.tv_sec<<" "<<now.tv_usec<<" removing control char="<<std::hex<<(unsigned int)*it<<endl;
+ cout<<now.tv_sec<<" "<<now.tv_usec<<" removing control char="<<std::hex<<(unsigned int)*it<<std::dec<<endl;
it = serialData.erase( it );
}
}
Modified: gearbox/trunk/src/gbxgarminacfr/nmea.cpp
===================================================================
--- gearbox/trunk/src/gbxgarminacfr/nmea.cpp 2008-06-09 08:22:40 UTC (rev 173)
+++ gearbox/trunk/src/gbxgarminacfr/nmea.cpp 2008-06-09 08:25:01 UTC (rev 174)
@@ -150,8 +150,8 @@
}
//failed the checksum!
- cout<<"device: '"<<chksum_HIB<<chksum_LOB <<"' ("<<std::hex<<(unsigned int)chksum_HIB<<","<<(unsigned int)chksum_LOB<<") "
- <<"driver: '"<<*ptr<<*(ptr+1)<<"'" <<"' ("<<std::hex<<(unsigned int)*ptr<<","<<(unsigned int)*(ptr+1)<<") "<<endl;
+ cout<<"device: '"<<chksum_HIB<<chksum_LOB <<"' ("<<std::hex<<(unsigned int)chksum_HIB<<","<<(unsigned int)chksum_LOB<<std::dec<<") "
+ <<"driver: '"<<*ptr<<*(ptr+1)<<"'" <<"' ("<<std::hex<<(unsigned int)*ptr<<","<<(unsigned int)*(ptr+1)<<std::dec<<") "<<endl;
return false;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|