mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Cleanup eye-gouging madness around io.read calls (#7149)
* Don't reinvent the wheel when reading a one-line int or string from sysfs * Simplify a whole other bunch of read calls
This commit is contained in:
@@ -227,7 +227,7 @@ describe("device module", function()
|
||||
}
|
||||
elseif filename == "/sys/class/backlight/max77696-bl/brightness" then
|
||||
return {
|
||||
read = function() return "12" end,
|
||||
read = function() return 12 end,
|
||||
close = function() end
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user