mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-06 16:27:12 +01:00
Actually apply button pulldown
Properly follow ternary else() chain, help out by pre-pending if() Resolve #2239, thanks to @sigmafx
This commit is contained in:
@@ -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)
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user