Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Kramer switches PPT-367 #106

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(kramer_hdmi): check response destination properly
  • Loading branch information
pkheav committed Feb 10, 2021
commit 343d3db8df2d8bb04c7e44f9e80a275414121534
4 changes: 2 additions & 2 deletions drivers/kramer/switches/vs_hdmi.cr
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ class Kramer::Switcher::VsHdmi < PlaceOS::Driver
def received(data, task)
logger.debug { "Kramer sent 0x#{data.hexstring}" }

# Check if we are the destination
return unless data[0].bit(6)
# Only process response if we are the destination
return unless data[0].bit(6) == 1
input = data[1] & 0b111_111
output = data[2] & 0b111_111
command = Command.from_value(data[0] & 0b111_111)
Expand Down