Ticker icon indicating copy to clipboard operation
Ticker copied to clipboard

interval() returning incorrect value

Open richcarni opened this issue 2 years ago • 0 comments

v4.4.0 Using MILLIS, returned interval is divided by 1000 Using MICROS, returned interval is 1000 times too high

Ticker.cpp, line 96:

uint32_t Ticker::interval() {
    if (resolution == MILLIS) return timer / 1000;
    else return timer;
}

Should that check be for MICROS rather than MILLIS?

richcarni avatar Mar 03 '22 08:03 richcarni