1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-23 04:04:54 +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,7 +458,7 @@ 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
@ -469,10 +469,10 @@ public:
* *
* \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 ******/