Skip to content

Commit

Permalink
Servo: Adjust PCA9685 special case check for Tessel 2 IO instance name
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed May 10, 2019
1 parent 75289e8 commit 106eabb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/expander.js
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ var Controllers = {
},
normalize: {
value: function(pin) {
return this.io.name === "Tessel 2" ? (pin - 1) : pin;
return this.io.name.includes("Tessel 2") ? pin - 1 : pin;
}
},
pinMode: {
Expand Down

0 comments on commit 106eabb

Please sign in to comment.