Add function to reset battery thresholds
This commit is contained in:
parent
6f6fc652d5
commit
e8dfe7fe44
@ -225,3 +225,8 @@ void battery_debug(void) {
|
||||
|
||||
#undef command
|
||||
}
|
||||
|
||||
void battery_reset(void) {
|
||||
battery_start_threshold = BATTERY_START_THRESHOLD;
|
||||
battery_end_threshold = BATTERY_END_THRESHOLD;
|
||||
}
|
||||
|
@ -29,5 +29,6 @@ int battery_charger_enable(void);
|
||||
int battery_charger_configure(void);
|
||||
void battery_event(void);
|
||||
void battery_debug(void);
|
||||
void battery_reset(void);
|
||||
|
||||
#endif // _BOARD_BATTERY_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user