Skip to content

Commit

Permalink
[mbr] change the low battery indication value
Browse files Browse the repository at this point in the history
also introduce a BATTERY_LOW value

Signed-off-by: Christopher Hall <hsw@openmoko.com>
  • Loading branch information
hxw committed Oct 5, 2009
1 parent bc1e648 commit 2d9e861
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions samo-lib/include/boards/samo_a1.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ static inline void power_off(void)
#define ADC_SHUNT_RESISTOR_K 1000

#define BATTERY_FULL 3000
#define BATTERY_LOW 2250
#define BATTERY_EMPTY 2100


Expand Down
2 changes: 1 addition & 1 deletion samo-lib/mbr/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ bool battery_empty(void)
{
Analog_scan();
int v = Analog_BatteryMilliVolts();
return v <= BATTERY_EMPTY;
return v <= BATTERY_LOW;
}


Expand Down

0 comments on commit 2d9e861

Please sign in to comment.