mirror of
https://github.com/wjwwood/serial.git
synced 2026-01-22 19:54:57 +08:00
Fixing serial manifest.xml for ROS and replacing an accidental missing function
This commit is contained in:
parent
154ef46c20
commit
1bceb66e0e
@ -458,6 +458,23 @@ public:
|
|||||||
|
|
||||||
/***** Hooks and Handlers ******/
|
/***** Hooks and Handlers ******/
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* Sets the handler to be called when a lines is not caught by a filter.
|
||||||
|
*
|
||||||
|
* This allows you to set a catch all function that will get called
|
||||||
|
* everytime a line is not matched by a filter and the ttl expires.
|
||||||
|
*
|
||||||
|
* Setting the callbacks works just like SerialListener::setInfoHandler.
|
||||||
|
*
|
||||||
|
* \param default_handler A function pointer to the callback to handle
|
||||||
|
* unmatched and expired messages.
|
||||||
|
*
|
||||||
|
* \see serial::DataCallback, SerialListener::setInfoHandler
|
||||||
|
*/
|
||||||
|
void setDefaultHandler(DataCallback default_handler) {
|
||||||
|
this->default_handler = default_handler;
|
||||||
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Sets the function to be called when an exception occurs internally.
|
* Sets the function to be called when an exception occurs internally.
|
||||||
*
|
*
|
||||||
|
|||||||
@ -8,6 +8,10 @@
|
|||||||
<license>BSD</license>
|
<license>BSD</license>
|
||||||
<review status="unreviewed" notes=""/>
|
<review status="unreviewed" notes=""/>
|
||||||
<url>http://ros.org/wiki/serial</url>
|
<url>http://ros.org/wiki/serial</url>
|
||||||
|
|
||||||
|
<export>
|
||||||
|
<cpp cflags="-I${prefix}/include" lflags="-L${prefix}/lib -Wl,-rpath,${prefix}/lib -lserial"/>
|
||||||
|
</export>
|
||||||
|
|
||||||
</package>
|
</package>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user