Skip to content

Commit aa8d348

Browse files
TheGoofydevyte
authored andcommitted
const for Ticker::active() (#5850)
1 parent 2528013 commit aa8d348

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libraries/Ticker/Ticker.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void Ticker::detach()
6868
_callback_function = nullptr;
6969
}
7070

71-
bool Ticker::active()
71+
bool Ticker::active() const
7272
{
7373
return (bool)_timer;
7474
}

libraries/Ticker/Ticker.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class Ticker
121121
}
122122

123123
void detach();
124-
bool active();
124+
bool active() const;
125125

126126
protected:
127127
void _attach_ms(uint32_t milliseconds, bool repeat, callback_with_arg_t callback, uint32_t arg);

0 commit comments

Comments
 (0)