Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
yaxu committed Sep 20, 2024
1 parent 5975f8b commit b462506
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/serial/serial.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Pattern.prototype.serial = function (br = 115200, sendcrc = false, singlecharids
} else {
message = hap.value;
}
const offset = ((targetTime - currentTime) + latency) * 1000;
const offset = (targetTime - currentTime + latency) * 1000;

window.setTimeout(function () {
writeMessagers[name](message, chk);
Expand Down

0 comments on commit b462506

Please sign in to comment.