Browse Source

Actually apply button pulldown

Properly follow ternary else() chain, help out by pre-pending if()
Resolve #2239, thanks to @sigmafx
mcspr-patch-1
Max Prokhorov 4 years ago
committed by GitHub
parent
commit
e60c561f70
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      code/espurna/button.cpp

+ 3
- 3
code/espurna/button.cpp View File

@ -79,9 +79,9 @@ constexpr const debounce_event::types::Config _buttonDecodeConfigBitmask(const u
((bitmask & ButtonMask::DefaultHigh)
? debounce_event::types::PinValue::High
: debounce_event::types::PinValue::Low),
((bitmask & ButtonMask::SetPullup)
? debounce_event::types::PinMode::InputPullup : (bitmask & ButtonMask::SetPulldown)
? debounce_event::types::PinMode::InputPullup : debounce_event::types::PinMode::Input)
((bitmask & ButtonMask::SetPullup) ? debounce_event::types::PinMode::InputPullup
: (bitmask & ButtonMask::SetPulldown) ? debounce_event::types::PinMode::InputPulldown
: debounce_event::types::PinMode::Input)
};
}


Loading…
Cancel
Save