<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -110,6 +110,15 @@ void NeoBattery::updateSysStatus()
 
     int capacity = getCapacity();
 
+	// JM: Occasionally we get a glitch and capacity returns 0, which
+	// is an unlikely value, so we ignore it, otherwise we get a
+	// critical battery dialog
+	if(capacity == 0){
+		qLog(PowerManagement) &lt;&lt; __PRETTY_FUNCTION__ &lt;&lt; &quot;ignoring 0 capacity&quot;;
+		return;
+	}
+		
+		
 	//JM: now is charging returns the correct result, we just need to do this
     battery-&gt;setCharging(charging);
     battery-&gt;setCharge(capacity);</diff>
      <filename>devices/neo/server/neobattery.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -79,7 +79,6 @@ bool NeoSuspend::suspend()
 
 bool NeoSuspend::wake()
 {
-    qLog(PowerManagement)&lt;&lt; __PRETTY_FUNCTION__;
 #ifdef Q_WS_QWS
     QWSServer::instance()-&gt;refresh();
 #endif</diff>
      <filename>devices/neo/server/neosuspend.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -38,7 +38,8 @@ static struct {
       { QObject::tr(&quot;Default Qt Extended&quot;), 0, 0, 0 }, 
       { QObject::tr(&quot;Wheel browser&quot;), 0, 0, &quot;Wheel&quot; },
       { QObject::tr(&quot;E1 example&quot;), &quot;E1&quot;, 0, 0 },
-      { QObject::tr(&quot;E2 example&quot;), &quot;E2&quot;, 0, 0 } 
+      { QObject::tr(&quot;E2 example&quot;), &quot;E2&quot;, 0, 0 },
+      { QObject::tr(&quot;E3 example&quot;), &quot;E3&quot;, 0, 0 } 
     };
 
 ServerWidgetSettings::ServerWidgetSettings( QWidget* parent, Qt::WFlags fl )</diff>
      <filename>src/settings/serverwidgets/serverwidgets.cpp</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8e378ed921955f891961a25ddc6b7a12d3d57c98</id>
    </parent>
  </parents>
  <author>
    <name>Jim Morris</name>
    <email>morris@wolfman.com</email>
  </author>
  <url>http://github.com/wolfmanjm/qtmoko/commit/1f82d64dddf16037a495925e9173e5647ce353e8</url>
  <id>1f82d64dddf16037a495925e9173e5647ce353e8</id>
  <committed-date>2009-09-29T16:41:39-07:00</committed-date>
  <authored-date>2009-09-29T16:41:39-07:00</authored-date>
  <message>Added E3 to server widgets demo
Remove the debug statement in wake
Fix neobattery to ignore a getCapacity return of 0</message>
  <tree>65fe458c0845c248d37b8214f72342b35f505a92</tree>
  <committer>
    <name>Jim Morris</name>
    <email>morris@wolfman.com</email>
  </committer>
</commit>
