mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add KT support
This commit is contained in:
@@ -15,9 +15,16 @@ function Device:getModel()
|
||||
end
|
||||
end
|
||||
if cpu_mod == "MX50" then
|
||||
local f = lfs.attributes("/sys/devices/system/fl_tps6116x/fl_tps6116x0/fl_intensity")
|
||||
if f then
|
||||
-- for KPW
|
||||
local pw_test_fd = lfs.attributes("/sys/devices/system/fl_tps6116x/fl_tps6116x0/fl_intensity")
|
||||
-- for KT
|
||||
local kt_test_fd = lfs.attributes("/sys/devices/platform/whitney-button")
|
||||
-- another special file for KT is Neonode zForce touchscreen:
|
||||
-- /sys/devices/platform/zforce.0/
|
||||
if pw_test_fd then
|
||||
return "KindlePaperWhite"
|
||||
elseif kt_test_fd then
|
||||
return "KindleTouch"
|
||||
else
|
||||
return "Kindle4"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user