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