From 1694fc5b0af3b73803a0885aa670251e4977d2d1 Mon Sep 17 00:00:00 2001 From: Tigran Aivazian Date: Sun, 16 Sep 2012 23:04:03 +0100 Subject: [PATCH] Stop filling up crash.log with INFO messages about battery charge every couple of seconds. Every write to a flash device shortens its life. --- filechooser.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filechooser.lua b/filechooser.lua index c5a8f535e..dda40167d 100644 --- a/filechooser.lua +++ b/filechooser.lua @@ -57,7 +57,7 @@ end function BatteryLevel() local fn, battery = "/tmp/kindle-battery-info", "?" -- NuPogodi, 18.05.12: This command seems to work even without Amazon Kindle framework - os.execute("gasgauge-info -s > "..fn) + os.execute("gasgauge-info -s 2> /dev/null > "..fn) if io.open(fn,"r") then for lines in io.lines(fn) do battery = " " .. lines end else