-rw-r--r-- | core/applets/batteryapplet/batterystatus.cpp | 3 |
1 files changed, 2 insertions, 1 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 | |||
@@ -18,25 +18,26 @@ BatteryStatus::BatteryStatus( const PowerStatus *p, QWidget *parent, WFlags f ) | |||
18 | : QFrame( parent, 0, f), ps(p), bat2(false) { | 18 | : QFrame( parent, 0, f), ps(p), bat2(false) { |
19 | 19 | ||
20 | UpdateBatteryStatus(); | 20 | UpdateBatteryStatus(); |
21 | } | 21 | } |
22 | 22 | ||
23 | BatteryStatus::~BatteryStatus() {} | 23 | BatteryStatus::~BatteryStatus() {} |
24 | 24 | ||
25 | void BatteryStatus::UpdateBatteryStatus() { | 25 | void BatteryStatus::UpdateBatteryStatus() { |
26 | 26 | ||
27 | jackPercent = 0; | 27 | jackPercent = 0; |
28 | 28 | ||
29 | if ( ODevice::inst ( )-> series ( ) == Model_iPAQ ) { | 29 | if ( ODevice::inst ( )-> series ( ) == Model_iPAQ ) { |
30 | getProcApmStatusIpaq(); | 30 | if ( ODevice::inst ( ) -> model() != Model_iPAQ_H191x ) |
31 | getProcApmStatusIpaq(); | ||
31 | } | 32 | } |
32 | percent = ps->batteryPercentRemaining(); | 33 | percent = ps->batteryPercentRemaining(); |
33 | } | 34 | } |
34 | 35 | ||
35 | /* | 36 | /* |
36 | * Make use of the advanced apm interface of the ipaq | 37 | * Make use of the advanced apm interface of the ipaq |
37 | */ | 38 | */ |
38 | bool BatteryStatus::getProcApmStatusIpaq() { | 39 | bool BatteryStatus::getProcApmStatusIpaq() { |
39 | 40 | ||
40 | bat2 = false; | 41 | bat2 = false; |
41 | 42 | ||
42 | QFile procApmIpaq("/proc/hal/battery"); | 43 | QFile procApmIpaq("/proc/hal/battery"); |