|
From: <gb...@us...> - 2009-05-19 23:09:30
|
Revision: 410
http://gearbox.svn.sourceforge.net/gearbox/?rev=410&view=rev
Author: gbiggs
Date: 2009-05-19 23:09:18 +0000 (Tue, 19 May 2009)
Log Message:
-----------
Corrected number of baud rates
Modified Paths:
--------------
gearbox/trunk/src/hokuyo_aist/hokuyo_aist.cpp
Modified: gearbox/trunk/src/hokuyo_aist/hokuyo_aist.cpp
===================================================================
--- gearbox/trunk/src/hokuyo_aist/hokuyo_aist.cpp 2009-05-06 21:01:01 UTC (rev 409)
+++ gearbox/trunk/src/hokuyo_aist/hokuyo_aist.cpp 2009-05-19 23:09:18 UTC (rev 410)
@@ -970,7 +970,7 @@
// Failed at the default baud rate, so try again at the other rates
// Note that a baud rate of 750000 or 250000 doesn't appear to be supported on any common OS
const unsigned int bauds[] = {500000, 115200, 57600, 38400, 19200};
- const unsigned int numBauds = 7;
+ const unsigned int numBauds = 5;
for (unsigned int ii = 0; ii < numBauds; ii++)
{
reinterpret_cast<SerialPort*> (_port)->SetBaudRate (bauds[ii]);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|