mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
@@ -11,7 +11,15 @@ local function kindleEnableWifi(toggle)
|
||||
lipc_handle = lipc.init("com.github.koreader.networkmgr")
|
||||
end
|
||||
if lipc_handle then
|
||||
lipc_handle:set_int_property("com.lab126.cmd", "wirelessEnable", toggle)
|
||||
-- Be extremely thorough... c.f., #6019
|
||||
-- NOTE: I *assume* this'll also ensure we prefer WiFi over 3G/4G, which is a plus in my book...
|
||||
if toggle == 1 then
|
||||
lipc_handle:set_int_property("com.lab126.cmd", "wirelessEnable", 1)
|
||||
lipc_handle:set_int_property("com.lab126.wifid", "enable", 1)
|
||||
else
|
||||
lipc_handle:set_int_property("com.lab126.wifid", "enable", 0)
|
||||
lipc_handle:set_int_property("com.lab126.cmd", "wirelessEnable", 0)
|
||||
end
|
||||
lipc_handle:close()
|
||||
else
|
||||
-- No liblipclua on FW < 5.x ;)
|
||||
|
||||
Reference in New Issue
Block a user