Skip to content

Commit b19599d

Browse files
committed
Fixed problem with single digit pins
ni-c/heimcontrol.js#2
1 parent a9af0b6 commit b19599d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/rc.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/*
32
* Main RC constructor
43
* Process options
@@ -7,7 +6,7 @@
76
var RC = function (options) {
87
if (!options || !options.board) throw new Error('Must supply required options to LED');
98
this.board = options.board;
10-
this.pin = options.pin || 10;
9+
this.pin = this.board.normalizePin(options.pin || 10);
1110
}
1211

1312
/*

0 commit comments

Comments
 (0)