fix(prototype): send component exchange without callback

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
haylanandClaude Bot committed 2026-10-05 22:29:28 +02:00
1 parent f9bc0e79fc
commit b53ed477f3
1 file changed
+2 -3
+2 -3
View File
@@ -43,9 +43,8 @@ local function tryIgnore(follower : Car, leader : Car)
mp.dyn.timeToIgnore = IGNORE_SECONDS
p(string.format("IGNORE_TEST send veh=%d leader=%d gap=%.1f v=%.2f leaderV=%.2f", follower.v, leader.v, math.abs(leader.pos - follower.pos), follower.speed, leader.speed))
local cmd = api.cmd.debug.makeComponentExchangeCmd(follower.v, mp as Engine.Component)
api.cmd.sendCommand(cmd, function(_data : any, success : boolean)
p(string.format("IGNORE_TEST result veh=%d success=%s", follower.v, tostring(success)))
end)
-- engine-state scripts can't pass a callback ("Error decoding argument #3"); the next dump shows the effect
api.cmd.sendCommand(cmd)
end
local function dump(dt : number)