From 0acbd35fb4c503961c92054331f60782d114792a Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Fri, 23 Sep 2011 00:57:27 +0200 Subject: [PATCH] Corrected name of USB power supply device. As far as I can see in the 3.0 kernel sources, both the Dingoo and the NanoNote use "usb" in lower case. --- src/gmenu2x.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gmenu2x.cpp b/src/gmenu2x.cpp index 25525b0..c553caf 100644 --- a/src/gmenu2x.cpp +++ b/src/gmenu2x.cpp @@ -241,7 +241,7 @@ void GMenu2X::init() { }*/ #else batteryHandle = fopen("/sys/class/power_supply/battery/capacity", "r"); - usbHandle = fopen("/sys/class/power_supply/USB/online", "r"); + usbHandle = fopen("/sys/class/power_supply/usb/online", "r"); acHandle = fopen("/sys/class/power_supply/ac/online", "r"); backlightHandle = fopen( #ifdef PLATFORM_NANONOTE