Revert "fix charger mode detection"

This reverts commit 31f5df90881f5681d38fa9f3e75852ebb9e4f911.