[OpenBIOS] r638 - dev/olpc/kb3700

svn at openbios.org svn at openbios.org
Wed Sep 26 21:56:06 CEST 2007


Author: rsmith
Date: 2007-09-26 21:56:06 +0200 (Wed, 26 Sep 2007)
New Revision: 638

Modified:
   dev/olpc/kb3700/battery.fth
Log:
- Add trickle charge indication support.  This should appear in EC firmware Q2c28


Modified: dev/olpc/kb3700/battery.fth
===================================================================
--- dev/olpc/kb3700/battery.fth	2007-09-26 02:36:53 UTC (rev 637)
+++ dev/olpc/kb3700/battery.fth	2007-09-26 19:56:06 UTC (rev 638)
@@ -54,6 +54,7 @@
   ," charging-full     "
   ," discharge         "
   ," abnormal: "
+  ," trickle           "
 end-string-array
 
 : .bat-type  ( -- )
@@ -84,7 +85,7 @@
    ." AC:"  dup h# 10 and  if  ." on  "  else  ." off "  then  ( stat )
    ." PCB: "  pcb-temp 2.d ." C "
 
-   dup 1 and  if
+   dup h# 81 and  if
       ." Battery: "
       .bat-type
       soc .%   ."  "
@@ -96,6 +97,7 @@
       dup 8 and  if  ." error "  then
       dup h# 20 and  if  ." charging "  then
       dup h# 40 and  if  ." discharging "  then
+      dup h# 80 and  if  ." trickle  "  then
    else
       ." No battery"
    then




More information about the OpenBIOS mailing list