Pocketbook: Add reboot option. (#6625)

Turns out there's an IPC command for it.
This commit is contained in:
ezdiy
2020-09-02 23:35:59 +02:00
committed by GitHub
parent 63e938f508
commit a110fe8686

View File

@@ -29,6 +29,7 @@ local PocketBook = Generic:new{
hasKeys = yes,
hasFrontlight = yes,
canSuspend = no,
canReboot = yes,
canPowerOff = yes,
needsScreenRefreshAfterResume = no,
home_dir = "/mnt/ext1",
@@ -228,6 +229,10 @@ function PocketBook:powerOff()
inkview.PowerOff()
end
function PocketBook:reboot()
inkview.iv_ipc_request(C.MSG_REBOOT, 1, nil, 0, 0)
end
function PocketBook:initNetworkManager(NetworkMgr)
function NetworkMgr:turnOnWifi(complete_callback)
if inkview.NetConnect(nil) ~= C.NET_OK then