mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
OTA: Handle tar checkpointing visual feedback w/ an FBInk daemon (#7588)
Instead of forking it on every checkpoint. Won't change much in the grand scheme of things, but FIFOs are fun.
This commit is contained in:
@@ -242,7 +242,7 @@ describe("device module", function()
|
||||
|
||||
kindle_dev.powerd:toggleFrontlight()
|
||||
assert.stub(os.execute).was_called_with(
|
||||
"echo -n 0 > /sys/class/backlight/max77696-bl/brightness")
|
||||
"printf '%s' 0 > /sys/class/backlight/max77696-bl/brightness")
|
||||
-- Here be shenanigans: we don't override powerd's fl_intensity when we turn the light off,
|
||||
-- so that we can properly turn it back on at the previous intensity ;)
|
||||
assert.is.same(kindle_dev.powerd.fl_intensity, 5)
|
||||
|
||||
Reference in New Issue
Block a user