mirror of https://github.com/ARMmbed/mbed-os.git
Watchdog: fix callback - uses ms
parent
0519caebe1
commit
b822c09b3b
|
@ -93,7 +93,7 @@ void Watchdog::timeout_handler()
|
|||
{
|
||||
kick();
|
||||
if (_callback) {
|
||||
_callback(_ticker_timeout);
|
||||
_callback(_ticker_timeout / 1000);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ public:
|
|||
*
|
||||
* 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
|
||||
*
|
||||
* @return status true if the watchdog timer was started
|
||||
|
|
Loading…
Reference in New Issue