From 035b24bb812488ce5506ca01eadf25844f51d7eb Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Mon, 31 Jan 2022 00:41:29 +0100 Subject: [PATCH] UIManager: Give more time to the kernel to figure out if we're actually plugged in... --- frontend/ui/uimanager.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/ui/uimanager.lua b/frontend/ui/uimanager.lua index 7d7744d4d..dc0d9069f 100644 --- a/frontend/ui/uimanager.lua +++ b/frontend/ui/uimanager.lua @@ -1764,14 +1764,14 @@ end -- The common operations that should be performed when the device is plugged to a power source. function UIManager:_beforeCharging() -- Leave the kernel some time to figure it out ;o). - self:scheduleIn(0.5, function() Device:setupChargingLED() end) + self:scheduleIn(1, function() Device:setupChargingLED() end) self:broadcastEvent(Event:new("Charging")) end -- The common operations that should be performed when the device is unplugged from a power source. function UIManager:_afterNotCharging() -- Leave the kernel some time to figure it out ;o). - self:scheduleIn(0.5, function() Device:setupChargingLED() end) + self:scheduleIn(1, function() Device:setupChargingLED() end) self:broadcastEvent(Event:new("NotCharging")) end