From 11cd34973bdef1b20d8e8aec37201f44ab562c3b Mon Sep 17 00:00:00 2001 From: Andrej Shadura Date: Tue, 11 Jan 2022 12:41:19 +0100 Subject: [PATCH] Pocketbook: switch the Wi-Fi on before attempting to connect (#8546) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #4747. Apparently, inkview.NetConnect() doesn’t enable the Wi-Fi on its own, this results in a failure if the device has been put into the sleep or standby mode, when the Wi-Fi hardware is powered down. Signed-off-by: Andrej Shadura --- frontend/device/pocketbook/device.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/device/pocketbook/device.lua b/frontend/device/pocketbook/device.lua index a763f3107..955e4cf85 100644 --- a/frontend/device/pocketbook/device.lua +++ b/frontend/device/pocketbook/device.lua @@ -342,6 +342,7 @@ end function PocketBook:initNetworkManager(NetworkMgr) function NetworkMgr:turnOnWifi(complete_callback) + inkview.WiFiPower(1) if inkview.NetConnect(nil) ~= C.NET_OK then logger.info('NetConnect failed') end