[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbios
Subject:    [OpenBIOS] r638 - dev/olpc/kb3700
From:       svn () openbios ! org
Date:       2007-09-26 19:56:06
Message-ID: 200709261956.l8QJuDbX032292 () mailer ! progressive-comp ! com
[Download RAW message or body]

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


-- 
OpenBIOS                 http://openbios.org/
Mailinglist:  http://lists.openbios.org/mailman/listinfo
Free your System - May the Forth be with you
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic