Skip to content

Commit 83550d9

Browse files
authored
Merge pull request #55 from LA1TV/SlotNumber
Update slots.
2 parents b0bfbfc + 1aaa6da commit 83550d9

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/hyperdeck/hyperdeck.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,10 @@ var Hyperdeck = function(config) {
3939
};
4040

4141
this.slotInfo = function (id) {
42-
if (id === 0 || id === 1 || id === 2){ //TO DO find if it's 0-1 or 1-2
42+
if (typeof id === 'number') {
4343
return this.makeRequest('slot info: slot id: ' + id);
4444
} else{
45-
if (!id){
46-
return this.makeRequest('slot info');
47-
}
48-
throw new Error('Slot ID Value out of range');
45+
return this.makeRequest('slot info');
4946
}
5047
};
5148

0 commit comments

Comments
 (0)