1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +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; _callback_function = nullptr;
} }
bool Ticker::active() bool Ticker::active() const
{ {
return (bool)_timer; return (bool)_timer;
} }

View File

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