init: detect charger mode (fix)