From c3b125132d32ee6db61799f0216bc43a107d8803 Mon Sep 17 00:00:00 2001 From: cheapie Date: Tue, 14 May 2024 21:18:01 -0500 Subject: Fix hall calls sent via I/O modules to unloaded dispatchers not being reliably serviced --- dispatcherfw.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dispatcherfw.lua b/dispatcherfw.lua index 8e6fa60..e909b19 100644 --- a/dispatcherfw.lua +++ b/dispatcherfw.lua @@ -791,6 +791,13 @@ elseif event.iid == "sleep" and mem.powerstate == "timing" then interrupt(nil,"run") mem.powerstate = "asleep" elseif event.type == "remotemsg" then + if mem.powerstate == "asleep" then + mem.powerstate = "awake" + interrupt(0,"getstatus") + interrupt(1,"run") + elseif mem.powerstate == "timing" then + mem.powerstate = "awake" + end if event.channel == "upcall" then mem.upcalls[event.msg] = true elseif event.channel == "dncall" then -- cgit v1.2.3