USB charging output control via LoadOutput class
- Introduce new CONFIG_HAS_USB_PWR_OUTPUT - Improve charger.discharge_control function - Add battery empty flag
This commit is contained in:
@@ -156,6 +156,14 @@ private:
|
||||
*/
|
||||
void (*switch_set)(bool);
|
||||
|
||||
/**
|
||||
* Used to prevent switching of because of very short voltage dip
|
||||
*/
|
||||
int uv_debounce_counter = 0;
|
||||
|
||||
/**
|
||||
* Used to prevent switching off because of short voltage spike
|
||||
*/
|
||||
int ov_debounce_counter = 0;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user