Yes! Update to 4.949k solved simultaneous lights toggling. And I rewrite lua code using togglebits command so the final version looks like this:
SW_Pos = "L:ASD_SWITCH_CJ2525A_LAND_TAXI_RECOG"
-- Move Ldg_Taxi Lt SW UP one position
if ipcPARAM == 1 then
SWPos = ipc.readLvar(SW_Pos)
if SWPos == -1 then
ipc.writeLvar(SW_Pos, 0)
ipc.togglebitsUW(0x0D0C, 8)
end
if SWPos == 0 then
ipc.writeLvar(SW_Pos, 1)
ipc.togglebitsUW(0x0D0C, 4)
end
end
-- Move Ldg_Taxi Lt SW DN one position
if ipcPARAM == 2 then
SWPos = ipc.readLvar(SW_Pos)
if SWPos == 1 then
ipc.writeLvar(SW_Pos, 0)
ipc.togglebitsUW(0x0D0C, 4)
end
if SWPos == 0 then
ipc.writeLvar(SW_Pos, -1)
ipc.togglebitsUW(0x0D0C, 8)
end
end
P.S. God damn it! I'm becoming programist via my simmer way!