pass all params to onTrigger

This commit is contained in:
Felix Roos 2022-11-10 22:02:08 +01:00
parent 42fedec088
commit 00550ddab5

View file

@ -18,8 +18,9 @@ export function repl({
if (!hap.context.onTrigger) { if (!hap.context.onTrigger) {
return defaultOutput(hap, deadline, duration); return defaultOutput(hap, deadline, duration);
} }
const cps = 1; // TODO: fix
// call signature of output / onTrigger is different... // call signature of output / onTrigger is different...
return hap.context.onTrigger(getTime() + deadline, hap); return hap.context.onTrigger(getTime() + deadline, hap, getTime(), cps);
}, },
onError: onSchedulerError, onError: onSchedulerError,
getTime, getTime,