1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-07-02 18:05:26 +03:00

update the brightness file path to NanoNote

Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
This commit is contained in:
Xiangfu Liu 2010-11-17 17:26:34 +08:00
parent 6e5fa8cedf
commit be9c6b9220

View File

@ -145,10 +145,10 @@ void GMenu2X::gp2x_init() {
f200 = ts.init();
}*/
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("/sys/class/backlight/pwm-backlight/brightness", "w+");
fopen("/sys/class/backlight/gpm940b0-bl/brightness", "w+");
#endif
}