Add battery charging hook, disabled by default

This commit is contained in:
Jeremy Soller 2019-11-05 14:44:18 -07:00
parent 976874f525
commit 0d74fe65e0
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1

View File

@ -3,6 +3,7 @@
#include <stdio.h>
#include <arch/delay.h>
#include <board/battery.h>
#include <board/gpio.h>
#include <board/gctrl.h>
#include <board/kbc.h>
@ -87,6 +88,8 @@ void power_button() {
if (!new && last) {
printf("Power switch\n");
// battery_charger_enable();
battery_debug();
//gpio_set(&DD_ON, true);
}