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:
NiLuJe
2021-04-25 01:15:38 +02:00
committed by GitHub
parent b0336e9982
commit e0a67bb656
7 changed files with 46 additions and 16 deletions

View File

@@ -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)