mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-05 19:51:45 +00:00
boot: fix two logic inversions in wake pin init
This commit is contained in:
parent
78828427a4
commit
377b8dae9f
2 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ static constexpr WakePinConfig WakePinConfigs[] = {
|
|||
{0x05, false, 0x02},
|
||||
{0x06, true, 0x02},
|
||||
{0x07, true, 0x02},
|
||||
{0x08, false, 0x02},
|
||||
{0x08, false, 0x01},
|
||||
{0x0A, true, 0x02},
|
||||
{0x0B, false, 0x02},
|
||||
{0x0C, false, 0x02},
|
||||
|
|
|
@ -49,7 +49,7 @@ static void InitializePmcWakeConfiguration(const bool is_blink) {
|
|||
void Boot::SetWakeEventLevel(u32 index, u32 level) {
|
||||
u32 pmc_wake_level_reg_offset = index <= 0x1F ? APBDEV_PMC_WAKE_LVL : APBDEV_PMC_WAKE2_LVL;
|
||||
u32 pmc_wake_level_mask_reg_offset = index <= 0x1F ? APBDEV_PMC_AUTO_WAKE_LVL_MASK : APBDEV_PMC_AUTO_WAKE2_LVL_MASK;
|
||||
if (level == 2) {
|
||||
if (level != 2) {
|
||||
std::swap(pmc_wake_level_reg_offset, pmc_wake_level_mask_reg_offset);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue