1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-22 19:54:57 +08:00

Fixing exception handler setting function

This commit is contained in:
William Woodall 2012-01-15 17:32:33 -06:00
parent 214b763664
commit 154ef46c20

View File

@ -458,21 +458,21 @@ public:
/***** Hooks and Handlers ******/ /***** Hooks and Handlers ******/
/*! /*!
* Sets the function to be called when an exception occurs internally. * Sets the function to be called when an exception occurs internally.
* *
* This allows you to hook into the exceptions that occur in threads inside * This allows you to hook into the exceptions that occur in threads inside
* the serial listener library. * the serial listener library.
* *
* \param exception_handler A function pointer to the callback to handle new * \param exception_handler A function pointer to the callback to handle new
* interal exceptions. * interal exceptions.
* *
* \see serial::ExceptionCallback * \see serial::ExceptionCallback
*/ */
void void
setWarningHandler (ExceptionCallback exception_handler) { setExceptionHandler (ExceptionCallback exception_handler) {
this->handle_exc = exception_handler; this->handle_exc = exception_handler;
} }
/***** Static Functions ******/ /***** Static Functions ******/