diff --git a/packages/core/cyclist.mjs b/packages/core/cyclist.mjs index e9c4c2d33..163ca3232 100644 --- a/packages/core/cyclist.mjs +++ b/packages/core/cyclist.mjs @@ -104,7 +104,7 @@ export class Cyclist { // They'll be scheduled during the next tick. return; } - onSchedule?.(hap, targetTime, this.cps); + onSchedule?.(hap, targetTime, hap.value.cps ?? this.cps); if (hap.value.cps !== undefined && this.cps != hap.value.cps) { cpsChanged = true; this.cps = hap.value.cps;