modules/batt_health/sys.c
static int sys_is_battery_charging()
{
        char status[128];
        if (BHD_SYS_sys_param_string_get("/sys/class/power_supply/battery/status",
					status, sizeof(status)) < 0)
                return -1;

        return (strncmp(status, "Charging", 8) == 0)? 1 : 0;
}
/* Determine if battery is currently charging, -1 = error */
Determine if battery is currently charging, -1 = error
Determine if battery is currently charging - 1 = error
static int sys_is_battery_charging()
{
        char status[128];
        if (BHD_SYS_sys_param_string_get("/sys/class/power_supply/battery/status",
					status, sizeof(status)) < 0)
                return -1;
        return (strncmp(status, "Charging", 8) == 0)? 1 : 0;
}
static int sys_is_battery_charging ( ) { char status [ 128 ] ; if ( BHD_SYS_sys_param_string_get ( " " , status , sizeof ( status ) ) < 0 ) return -1 ; return ( strncmp ( status , " " , 8 ) == 0 ) ? 1 : 0 ; }
Determine if battery is currently charging, -1 = error
Determine if battery is currently charging - 1 = error