mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Handle the new 4GB PW2 models
This commit is contained in:
@@ -50,7 +50,7 @@ function Device:getModel()
|
||||
local k4_set = Set { "0E", "23" }
|
||||
local touch_set = Set { "0F", "11", "10", "12" }
|
||||
local pw_set = Set { "24", "1B", "1D", "1F", "1C", "20" }
|
||||
local pw2_set = Set { "D4", "5A", "D5", "D6", "D7", "D8", "F2", "17" }
|
||||
local pw2_set = Set { "D4", "5A", "D5", "D6", "D7", "D8", "F2", "17", "60", "F4", "F9", "62", "61", "5F" }
|
||||
|
||||
if k2_set[kindle_devcode] then
|
||||
self.model = "Kindle2"
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#!/bin/sh
|
||||
# NOTE: KatePart is being stupid, probably because of the file extension. Get me a decent syntax HL anyway.
|
||||
#kate: syntax bash;
|
||||
|
||||
## A bit of helper functions...
|
||||
# Check which type of init system we're running on
|
||||
@@ -15,7 +17,7 @@ fi
|
||||
# We need to get the proper constants for our model...
|
||||
kmodel="$(cut -c3-4 /proc/usid)"
|
||||
case "${kmodel}" in
|
||||
"24" | "1B" | "1D" | "1F" | "1C" | "20" | "D4" | "5A" | "D5" | "D6" | "D7" | "D8" | "F2" | "17" )
|
||||
"24" | "1B" | "1D" | "1F" | "1C" | "20" | "D4" | "5A" | "D5" | "D6" | "D7" | "D8" | "F2" | "17" | "60" | "F4" | "F9" | "62" | "61" | "5F" )
|
||||
# PaperWhite...
|
||||
SCREEN_X_RES=768 # NOTE: Yes, 768, not 758...
|
||||
SCREEN_Y_RES=1024
|
||||
|
||||
Reference in New Issue
Block a user