Skip to content

Commit

Permalink
Samsung flip: set expected touch panels to 0
Browse files Browse the repository at this point in the history
to avoid diagnostic errors in control hub (?)
  • Loading branch information
tbjolset committed Jan 30, 2023
1 parent 9d3d992 commit 5ebec09
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Samsung Flip/flipToFlip.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
import xapi from 'xapi';


// Don't want error diagnostics for this:
try {
xapi.Config.Peripherals.Profile.TouchPanels.set(0);
}
catch(e) {
console.warn('Not able to set touch panel ')
}

function onPanelClicked(event) {
if (event.PanelId === 'webexOnFlip') {
xapi.Command.Video.CEC.Output.SendInactiveSourceRequest();
Expand Down

0 comments on commit 5ebec09

Please sign in to comment.