From 75e1d3d8d93175cf7865ac8a8c98de8030304ffd Mon Sep 17 00:00:00 2001 From: yarah123 <101484139+yarah123@users.noreply.github.com> Date: Thu, 12 May 2022 12:05:48 +0300 Subject: [PATCH] Update protocol3000.cr On line 2, I added the 'require' statement to 'include' the switchable interface on line 55. --- drivers/kramer/switches/protocol3000.cr | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/kramer/switches/protocol3000.cr b/drivers/kramer/switches/protocol3000.cr index 81bf4992139..6e7f8725f5a 100644 --- a/drivers/kramer/switches/protocol3000.cr +++ b/drivers/kramer/switches/protocol3000.cr @@ -1,4 +1,5 @@ require "placeos-driver/interface/muteable" +require "placeos-driver/interface/switchable" # Documentation: https://aca.im/driver_docs/Kramer/protocol_3000_2.10_user.pdf @@ -51,6 +52,8 @@ class Kramer::Switcher::Protocol3000 < PlaceOS::Driver get_machine_info end + include Interface::InputSelection(Input) + def switch_video(input : Int32, output : Array(Int32)) do_send(CMDS["switch_video"], build_switch_data({input => output})) end