Skip to content

Commit

Permalink
Allow changing video source to 0 (TV tuner)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafostar committed Sep 18, 2019
1 parent 02ad79d commit 5b00a6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5b00a6b

Please sign in to comment.