1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

const for Ticker::active() (#5850)

This commit is contained in:
Christoph Laimer 2019-03-08 13:35:38 +01:00 committed by Develo
parent 2528013c5d
commit aa8d3482d3
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ void Ticker::detach()
_callback_function = nullptr;
}
bool Ticker::active()
bool Ticker::active() const
{
return (bool)_timer;
}

View File

@ -121,7 +121,7 @@ public:
}
void detach();
bool active();
bool active() const;
protected:
void _attach_ms(uint32_t milliseconds, bool repeat, callback_with_arg_t callback, uint32_t arg);