+ if ( pnd_conf_get_as_int ( evmaph, "battery_charge.enable" ) != PND_CONF_BADNUM ) {
+ bc_enable = pnd_conf_get_as_int ( evmaph, "battery_charge.enable" );
+ pnd_log ( pndn_rem, "Battery charge enable set to %u", bc_enable );
+ }
+ if ( pnd_conf_get_as_int ( evmaph, "battery_charge.stop_capacity" ) != PND_CONF_BADNUM ) {
+ bc_stopcap = pnd_conf_get_as_int ( evmaph, "battery_charge.stop_capacity" );
+ pnd_log ( pndn_rem, "Battery charge stop capacity set to %u", bc_stopcap );
+ }
+ if ( pnd_conf_get_as_int ( evmaph, "battery_charge.stop_current" ) != PND_CONF_BADNUM ) {
+ bc_stopcur = pnd_conf_get_as_int ( evmaph, "battery_charge.stop_current" );
+ pnd_log ( pndn_rem, "Battery charge stop current set to %u", bc_stopcur );
+ }
+ if ( pnd_conf_get_as_int ( evmaph, "battery_charge.start_capacity" ) != PND_CONF_BADNUM ) {
+ bc_startcap = pnd_conf_get_as_int ( evmaph, "battery_charge.start_capacity" );
+ pnd_log ( pndn_rem, "Battery charge start capacity set to %u", bc_startcap );
+ }
+ if ( pnd_conf_get_as_char ( evmaph, "battery_charge.devices" ) != NULL ) {
+ bc_charge_devices = strdup ( pnd_conf_get_as_char ( evmaph, "battery_charge.devices" ) );
+ pnd_log ( pndn_rem, "Battery charge devices set to %s", bc_charge_devices );
+ }