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) {
return defaultOutput(hap, deadline, duration);
}
const cps = 1; // TODO: fix
// 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,
getTime,