Power: Also ask charger if charge done (#1378)
* power: Also ask charger if charge done * F7: bump API Symbols version * Lib: remove double include in bq25896.c Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
		| @@ -266,6 +266,13 @@ bool furi_hal_power_is_charging() { | ||||
|     return ret; | ||||
| } | ||||
|  | ||||
| bool furi_hal_power_is_charging_done() { | ||||
|     furi_hal_i2c_acquire(&furi_hal_i2c_handle_power); | ||||
|     bool ret = bq25896_is_charging_done(&furi_hal_i2c_handle_power); | ||||
|     furi_hal_i2c_release(&furi_hal_i2c_handle_power); | ||||
|     return ret; | ||||
| } | ||||
|  | ||||
| void furi_hal_power_shutdown() { | ||||
|     furi_hal_power_insomnia_enter(); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user