Changeset 3466


Ignore:
Timestamp:
Nov 28, 2012, 5:56:41 PM (2 years ago)
Author:
rsmith
Message:

OLPC: Fix battery temperature calculation error

Multiplier was not qualified with d# so on 1.5 (and probably 1.0) it
was using 125 hex rather than 125 decimal.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dev/olpc/kb3700/batstat.fth

    r3442 r3466  
    11: wextend  ( w -- n )  dup h# 8000 and  if  h# ffff.0000 or  then  ; 
    22\ Base unit for temperature is .125 degrees C 
    3 : >milli-degrees-c 125 * 5 rshift ; 
     3: >milli-degrees-c d# 125 * 5 rshift ; 
    44: uvolt@ bat-voltage@ d# 9760 d# 32 */ ; 
    55: cur@ bat-current@ wextend  d# 15625 d# 120 */ ; 
Note: See TracChangeset for help on using the changeset viewer.