Watchdog: fix callback - uses ms

pull/11023/head
Martin Kojtal 2019-06-28 10:06:29 +01:00
parent 760ccbe0a4
commit 659e5051f3
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ void Watchdog::timeout_handler()
{ {
kick(); kick();
if (_callback) { if (_callback) {
_callback(_ticker_timeout); _callback(_ticker_timeout / 1000);
} }
} }

View File

@ -69,7 +69,7 @@ public:
* *
* If watchdog is already running, only callback is being updated (timeout can't be set to watchdog neither ticker). * If watchdog is already running, only callback is being updated (timeout can't be set to watchdog neither ticker).
* *
* @param func Callback to be invoked after timeout * @param func Callback to be invoked after timeout, it has the argument - time elapsed in milliseconds
* @param timeout Ticker timeout to be kicking the watchdog * @param timeout Ticker timeout to be kicking the watchdog
* *
* @return status true if the watchdog timer was started * @return status true if the watchdog timer was started