Minor visual fix
This commit is contained in:
@ -84,10 +84,8 @@ function handlers.handlePasswordInput()
|
||||
handlers.handleMessage(table.unpack(event))
|
||||
-- Check if iris opened (via password or GDO)
|
||||
if state.lastReceivedMessage == "IRIS_OPEN" or state.lastReceivedMessage == "GDO_IRIS_OPEN" then
|
||||
utils.debug("Password handler: Received " .. state.lastReceivedMessage)
|
||||
state.lastReceivedMessage = nil
|
||||
state.enteringPassword = false
|
||||
utils.debug("Password handler: About to return IRIS_OPENED")
|
||||
return "IRIS_OPENED"
|
||||
end
|
||||
elseif eventType == "monitor_touch" then
|
||||
@ -241,7 +239,6 @@ end
|
||||
|
||||
function handlers.handleMessage(eventType, side, message)
|
||||
state.lastReceivedMessage = message
|
||||
utils.debug("Message Received: " .. message)
|
||||
return "message_received"
|
||||
end
|
||||
|
||||
@ -253,19 +250,16 @@ function handlers.handleGDOTransmission(eventType, side, frequency, idc, matches
|
||||
state.lastGDOCode = idc
|
||||
state.lastGDOMatches = matches
|
||||
utils.log("GDO transmission received: IDC=" .. tostring(idc) .. ", matches=" .. tostring(matches))
|
||||
utils.debug("GDO received: IDC=" .. tostring(idc) .. ", matches=" .. tostring(matches))
|
||||
|
||||
-- If matches configured IDC and gate is connected, open iris
|
||||
if matches and gate.isStargateConnected() and config.irisEnabled then
|
||||
utils.log("Valid GDO code received - opening iris")
|
||||
utils.debug("Valid GDO - opening iris")
|
||||
utils.openIris()
|
||||
|
||||
-- Send message to remote gate that iris opened via GDO
|
||||
if config.enableMessaging then
|
||||
gate.sendStargateMessage("GDO_IRIS_OPEN")
|
||||
utils.log("Sent GDO iris open notification to remote gate")
|
||||
utils.debug("Sent: GDO_IRIS_OPEN")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user