Pocketbook: Add reboot option. (#6625)

Turns out there's an IPC command for it.
reviewable/pr6627/r1
ezdiy 4 years ago committed by GitHub
parent 63e938f508
commit a110fe8686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save