FreeCalypso > hg > fc-magnetite
diff src/cs/drivers/drv_app/fchg/fchg_ffs_init.c @ 344:562fa85c8963
FCHG battery table loading: comparison signedness issue
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 15 Dec 2017 19:58:18 +0000 |
parents | 8166b0afcf8c |
children |
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/fchg/fchg_ffs_init.c Fri Dec 15 19:13:22 2017 +0000 +++ b/src/cs/drivers/drv_app/fchg/fchg_ffs_init.c Fri Dec 15 19:58:18 2017 +0000 @@ -37,7 +37,7 @@ rc = ffs_file_read("/etc/batterytab", pwr_ctrl->batt_thresholds, sizeof(pwr_ctrl->batt_thresholds)); - if (rc >= sizeof(T_PWR_THRESHOLDS)) { + if (rc >= (int)sizeof(T_PWR_THRESHOLDS)) { pwr_ctrl->nb_thresholds = rc / sizeof(T_PWR_THRESHOLDS); rvf_send_trace("FCHG: battery table loaded from FFS", 35, NULL_PARAM, RV_TRACE_LEVEL_DEBUG_HIGH,