Pocketbook: Add reboot option. (#6625)
Turns out there's an IPC command for it.
This commit is contained in:
1 parent
63e938f508
commit
a110fe8686
1 file changed
+5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user