aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/e300
diff options
context:
space:
mode:
authorMoritz Fischer <moritz.fischer@ettus.com>2015-10-14 10:03:26 -0700
committerMartin Braun <martin.braun@ettus.com>2015-10-22 09:31:30 -0700
commitf4f2b42c03bfb17880debd588459a49ca359c141 (patch)
treef683627b08eed29316c6d43d8805c44412ee2a61 /firmware/e300
parent6e9c5a0c204cb16d344012dfc6b0d07d3b0a8623 (diff)
downloaduhd-f4f2b42c03bfb17880debd588459a49ca359c141.tar.gz
uhd-f4f2b42c03bfb17880debd588459a49ca359c141.tar.bz2
uhd-f4f2b42c03bfb17880debd588459a49ca359c141.zip
firmware: e3xx: Turn off overzealous shutdown.
Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
Diffstat (limited to 'firmware/e300')
-rw-r--r--firmware/e300/battery/bq2419x.c4
-rw-r--r--firmware/e300/battery/pmu.c1
2 files changed, 2 insertions, 3 deletions
diff --git a/firmware/e300/battery/bq2419x.c b/firmware/e300/battery/bq2419x.c
index 11b393622..0545fcf56 100644
--- a/firmware/e300/battery/bq2419x.c
+++ b/firmware/e300/battery/bq2419x.c
@@ -571,9 +571,9 @@ int8_t bq2419x_init(void)
ir_comp &= ~BQ2419X_BAT_COMP_MASK;
ir_comp |= (0x02 << BQ2419X_BAT_COMP_SHIFT);
- /* set thermal regulation to 60 C */
+ /* set thermal regulation to 120 C */
ir_comp &= ~BQ2419X_TREG_MASK;
- ir_comp |= (0x00 << BQ2419X_TREG_SHIFT);
+ ir_comp |= (0x03 << BQ2419X_TREG_SHIFT);
ret = bq2419x_write(BQ2419X_REG_THERMAL_REG_CTRL, ir_comp);
if (ret)
diff --git a/firmware/e300/battery/pmu.c b/firmware/e300/battery/pmu.c
index bd337783f..afd5036fa 100644
--- a/firmware/e300/battery/pmu.c
+++ b/firmware/e300/battery/pmu.c
@@ -588,7 +588,6 @@ void pmu_handle_events(void)
uint8_t health = pmu_battery_get_health(charger);
switch (health) {
case PMU_HEALTH_OVERHEAT:
- pmu_power_down();
pmu_error = PMU_ERROR_CHARGER_TEMP;
break;
default: