Changeset 12 for trunk/shared_serial/src


Ignore:
Timestamp:
08/29/12 16:52:22 (12 years ago)
Author:
wcaarls
Message:

Updated shared_serial to revision 1017

Location:
trunk/shared_serial/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/shared_serial/src/LxSerial.cpp

    r8 r12  
    455455LxSerial::~LxSerial()
    456456{
    457         // Warn when you forgot to close the port before destruction.
    458         // We CANNOT call port_close() here, because port_close is a virtual function
    459         // and virtual functions cannot be called in constructors and destructors.
    460457        if (hPort != INVALID_DEVICE_HANDLE)
    461                 printf("[LxSerial] Warning: you didn't call port_close before calling the destructor.\n");
    462 }
     458                port_close();
     459}
  • trunk/shared_serial/src/server.cpp

    r8 r12  
    116116  ROS_ASSERT(nh_.getParam("port_type", port_type));
    117117  ROS_ASSERT(nh_.getParam("baud_rate", baud_rate));
    118   nh_.param<double>("watchdog_interval", watchdog_interval, 1);
     118  nh_.param<double>("watchdog_interval", watchdog_interval, 10);
    119119
    120120  if (port_type == "RS232")
Note: See TracChangeset for help on using the changeset viewer.