Skip to content

Commit 8099328

Browse files
PeriodTicks uint32_t -> uint64_t fix #2071
1 parent 4c5ac62 commit 8099328

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libraries/SrcWrapper/src/HardwareTimer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ uint32_t HardwareTimer::getOverflow(TimerFormat_t format)
521521
void HardwareTimer::setOverflow(uint64_t overflow, TimerFormat_t format)
522522
{
523523
uint32_t ARR_RegisterValue;
524-
uint32_t PeriodTicks;
524+
uint64_t PeriodTicks;
525525
uint32_t Prescalerfactor;
526526
uint32_t period_cyc;
527527
// Remark: Hardware register correspond to period count-1. Example ARR register value 9 means period of 10 timer cycle

0 commit comments

Comments
 (0)