[BH-1689] Turn off charging for CDP and SPD Due to high current consumption the device will be charging only for DCP mode and if the timeout will occur.
1 files changed, 3 insertions(+), 2 deletions(-) M module-bsp/board/rt1051/bellpx/hal/battery_charger/BatteryCharger.cpp
M module-bsp/board/rt1051/bellpx/hal/battery_charger/BatteryCharger.cpp => module-bsp/board/rt1051/bellpx/hal/battery_charger/BatteryCharger.cpp +3 -2
@@ 240,12 240,13 @@ namespace hal::battery LOG_INFO("USB charging port discovery result: %s", std::string{magic_enum::enum_name(evt)}.c_str()); switch (evt) { case events::DCD::DCP: case events::DCD::CDP: case events::DCD::Timeout: case events::DCD::DCP: LOG_INFO("Valid charger detected, enabling charging"); charger.enable_charging(true); break; case events::DCD::CDP: case events::DCD::SDP: default: charger.enable_charging(false); }