Pocketbook: switch the Wi-Fi on before attempting to connect (#8546)

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 <andrew.shadura@collabora.co.uk>
reviewable/pr8647/r1
Andrej Shadura 2 years ago committed by GitHub
parent be6e9f4fe8
commit 11cd34973b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save