Skip to content
Snippets Groups Projects
Commit ceef0e29 authored by Martí Morta Garriga's avatar Martí Morta Garriga
Browse files

Neteja de codi comentat.. yellow card

parent 0cb195b2
No related branches found
No related tags found
No related merge requests found
......@@ -60,28 +60,23 @@ void
CSegwayRMP400::start()
{
for (unsigned int i = 0;i < segways_.size();i++) {
// for (unsigned int i = 0;i < NUM_SEGWAY_200 ;i++) {
try
{
// CSegwayRMP200 * segway = new CSegwayRMP200();
segways_[i]->connect(serial_ftdi_segway_devices_[i]);
// segways_.push_back(segway);
}
catch (CSegwayRMP200Exception & e)
{
// Something failed while starting engines
// clean up previous (if any) started engine
for (unsigned int i = 0; i < segways_.size(); i++) {
segways_[i]->close();
// delete segways_[i];
}
status_ = rmp400_off;
throw;
try
{
segways_[i]->connect(serial_ftdi_segway_devices_[i]);
}
catch (CSegwayRMP200Exception & e)
{
// Something failed while starting engines
// clean up previous (if any) started engine
for (unsigned int i = 0; i < segways_.size(); i++) {
segways_[i]->close();
}
}
status_ = rmp400_off;
throw;
}
}
status_ = rmp400_connected;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment