Skip to content

Commit

Permalink
Take into consideration only the lowest 8 bits of a input value
Browse files Browse the repository at this point in the history
Co-authored-by: George Hilliard <[email protected]>
  • Loading branch information
haimgel and thirtythreeforty authored May 29, 2022
1 parent 770927a commit 7076fcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/display_control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fn are_display_names_unique(displays: &[Display]) -> bool {
fn try_switch_display(handle: &mut Handle, display_name: &str, input: InputSource) {
match handle.get_vcp_feature(INPUT_SELECT) {
Ok(raw_source) => {
if raw_source.value() == input.value() {
if raw_source.value() & 0xff == input.value() {
info!("Display {} is already set to {}", display_name, input);
return;
}
Expand Down

0 comments on commit 7076fcc

Please sign in to comment.