From 86d2652258c422fb92cf8c9414eace57172e929d Mon Sep 17 00:00:00 2001 From: Felix Roos Date: Tue, 28 Feb 2023 23:54:56 +0100 Subject: [PATCH] pass cps to hap trigger --- packages/core/cyclist.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/cyclist.mjs b/packages/core/cyclist.mjs index 7ffca4a5..6e8171ea 100644 --- a/packages/core/cyclist.mjs +++ b/packages/core/cyclist.mjs @@ -39,7 +39,7 @@ export class Cyclist { if (hap.part.begin.equals(hap.whole.begin)) { const deadline = (hap.whole.begin - begin) / this.cps + tickdeadline + latency; const duration = hap.duration / this.cps; - onTrigger?.(hap, deadline, duration); + onTrigger?.(hap, deadline, duration, this.cps); } }); } catch (e) {