From 5b00a6bd5f648e4c8b956db26102f7c06d8b8bc9 Mon Sep 17 00:00:00 2001 From: Rafostar <40623528+Rafostar@users.noreply.github.com> Date: Wed, 18 Sep 2019 11:45:31 +0200 Subject: [PATCH] Allow changing video source to 0 (TV tuner) --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index ff34de1..662e5c2 100644 --- a/index.js +++ b/index.js @@ -315,9 +315,9 @@ module.exports = class Client { func.changeSource = (number) => { - if(isNaN(number) || number < 1) + if(isNaN(number) || number < 0) { - this.sourceNumber = (this.sourceNumber < this.hdmiPorts) ? this.sourceNumber + 1 : 1; + this.sourceNumber = (this.sourceNumber < this.hdmiPorts) ? this.sourceNumber + 1 : 0; number = this.sourceNumber; }