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:
parent
2528013c5d
commit
aa8d3482d3
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user