- continue;
- }
-
- if (obj3 &&
- strlen(prop_string_cstring_nocopy(obj3)) == 13 &&
- strncmp("last full cap",
- prop_string_cstring_nocopy(obj3),
- 13) == 0) {
+ } else if (strcmp("charge rate", prop_string_cstring_nocopy(obj3)) == 0) {
+ obj3 = prop_dictionary_get(obj2, "cur-value");
+ batt_info->present_rate = prop_number_integer_value(obj3);
+ } else if (strcmp("last full cap", prop_string_cstring_nocopy(obj3)) == 0) {