From 8d9e3f2a31b6becd47482d66b86f4ddac9fc2a9c Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Fri, 16 Sep 2022 15:34:38 -0700 Subject: [PATCH] boot: fix ChargerDriver inititalization correctness (thanks @CTCaer) --- stratosphere/boot/source/boot_charger_driver.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stratosphere/boot/source/boot_charger_driver.hpp b/stratosphere/boot/source/boot_charger_driver.hpp index 227578802..b0d41b02c 100644 --- a/stratosphere/boot/source/boot_charger_driver.hpp +++ b/stratosphere/boot/source/boot_charger_driver.hpp @@ -49,8 +49,8 @@ namespace ams::boot { R_TRY(powctl::SetChargerInputCurrentLimit(m_charger_session, 500)); } - /* Set input voltage limit to 500 mv. */ - R_TRY(powctl::SetChargerInputVoltageLimit(m_charger_session, 500)); + /* Set boost mode current limit to 500 ma. */ + R_TRY(powctl::SetChargerBoostModeCurrentLimit(m_charger_session, 500)); /* Disable hi-z mode. */ R_TRY(powctl::SetChargerHiZEnabled(m_charger_session, false));