mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Pocketbook: Add reboot option. (#6625)
Turns out there's an IPC command for it.
This commit is contained in:
@@ -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