Upravy na zaklade clang-tidy
This commit is contained in:
@ -1,19 +1,19 @@
|
||||
#include "interval.h"
|
||||
|
||||
// Public Methods //////////////////////////////////////////////////////////////
|
||||
uint32_t Interval::remains(void)
|
||||
uint32_t Interval::remains() const
|
||||
{
|
||||
|
||||
return _timeout - (millis() - _timefrom);
|
||||
}
|
||||
|
||||
uint32_t Interval::elapsed(void)
|
||||
uint32_t Interval::elapsed() const
|
||||
{
|
||||
|
||||
return millis() - _timefrom;
|
||||
}
|
||||
|
||||
bool Interval::expired(void)
|
||||
bool Interval::expired()
|
||||
{
|
||||
bool result = false;
|
||||
|
||||
@ -66,7 +66,7 @@ void Interval::setPeriodic(uint32_t tmout)
|
||||
_done = 0xff;
|
||||
}
|
||||
|
||||
void Interval::reload(void)
|
||||
void Interval::reload()
|
||||
{
|
||||
|
||||
_timefrom = millis();
|
||||
|
Reference in New Issue
Block a user