Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion framework/cores/AVR8Bit/WHardwareTimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -781,9 +781,9 @@ uint16_t HardwareTimer::getCounter(void)
uint16_t value = 0;
uint8_t oldSREG = SREG;
cli();
value += *_tcntnl;
if (_tcntnh != NULL)
value = *_tcntnh << 8;
value += *_tcntnl;
SREG = oldSREG;

return value;
Expand Down