summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/applets/batteryapplet/batterystatus.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/applets/batteryapplet/batterystatus.cpp b/core/applets/batteryapplet/batterystatus.cpp
index 34043f4..08ddc85 100644
--- a/core/applets/batteryapplet/batterystatus.cpp
+++ b/core/applets/batteryapplet/batterystatus.cpp
@@ -14,32 +14,33 @@
using namespace Opie::Core;
BatteryStatus::BatteryStatus( const PowerStatus *p, QWidget *parent, WFlags f )
: QFrame( parent, 0, f), ps(p), bat2(false) {
UpdateBatteryStatus();
}
BatteryStatus::~BatteryStatus() {}
void BatteryStatus::UpdateBatteryStatus() {
jackPercent = 0;
if ( ODevice::inst ( )-> series ( ) == Model_iPAQ ) {
+ if ( ODevice::inst ( ) -> model() != Model_iPAQ_H191x )
getProcApmStatusIpaq();
}
percent = ps->batteryPercentRemaining();
}
/*
* Make use of the advanced apm interface of the ipaq
*/
bool BatteryStatus::getProcApmStatusIpaq() {
bat2 = false;
QFile procApmIpaq("/proc/hal/battery");
if (procApmIpaq.open(IO_ReadOnly) ) {
QStringList list;