why u no open local iris ;-;

This commit is contained in:
2026-01-02 00:46:07 -05:00
parent cc0fd4974f
commit 4fda0d9bac
3 changed files with 12 additions and 28 deletions

View File

@ -74,29 +74,21 @@ function handlers.handlePasswordInput()
local event = { os.pullEvent() }
local eventType = event[1]
utils.log("DEBUG: Password handler received event: " .. tostring(eventType))
-- Handle GDO events
if eventType == "transceiver_transmission_received" then
-- Pass to GDO handler
utils.log("DEBUG: Processing GDO transmission in password handler")
handlers.handleGDOTransmission(table.unpack(event))
-- Continue loop to check iris state
elseif eventType == "stargate_message_received" then
-- Pass to message handler
handlers.handleMessage(table.unpack(event))
utils.log("DEBUG: Message in password handler: " .. tostring(state.lastReceivedMessage))
-- Check if iris opened (via password or GDO)
if state.lastReceivedMessage == "IRIS_OPEN" or state.lastReceivedMessage == "GDO_IRIS_OPEN" then
utils.log("Received iris open confirmation: " .. state.lastReceivedMessage)
utils.debug("Password handler: Received " .. state.lastReceivedMessage)
state.lastReceivedMessage = nil
utils.log("DEBUG: Setting enteringPassword to false")
state.enteringPassword = false
utils.log("DEBUG: state.enteringPassword is now: " .. tostring(state.enteringPassword))
utils.log("DEBUG: About to return IRIS_OPENED from password handler")
local returnValue = "IRIS_OPENED"
utils.log("DEBUG: Return value set to: " .. returnValue)
return returnValue
utils.debug("Password handler: About to return IRIS_OPENED")
return "IRIS_OPENED"
end
elseif eventType == "monitor_touch" then
local x, y = event[3], event[4]
@ -133,16 +125,12 @@ function handlers.handlePasswordInput()
end
end
utils.log("DEBUG: Exited password entry loop")
-- If we got here with a password, send it
if password ~= "" then
utils.sendPasswordAttempt(password)
utils.log("DEBUG: Returning password: " .. password)
return password
end
utils.log("DEBUG: Returning nil from password handler")
return nil
end