Skip to content

Commit e258a5a

Browse files
committed
fix(pwm): peripheral hangs occasionally #144
close #144
1 parent d43233d commit e258a5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/timer32.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export class Timer32PeriodicAlarm {
208208
}
209209
}
210210
if (top != 0xffffffff) {
211-
if (cycleDelta < 0) {
211+
if (cycleDelta <= 0) {
212212
cycleDelta += top + 1;
213213
}
214214
if (targetValue > top) {

0 commit comments

Comments
 (0)