Skip to content

Commit

Permalink
fixes #71
Browse files Browse the repository at this point in the history
  • Loading branch information
Frijol committed Apr 15, 2016
1 parent 7908ae1 commit 08f0959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/tessel-export.js
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ Tessel.Pin.prototype.removeAllListeners = function(event) {
Tessel.Pin.prototype.addListener = function(mode, callback) {
if (typeof Tessel.Pin.interruptModes[mode] !== 'undefined') {
if (!this.interruptSupported) {
throw new Error('Interrupts are not supported on pin ' + this.pin);
throw new Error('Interrupts are not supported on pin ' + this.pin + '. Pins 2, 5, 6, and 7 on either port support interrupts.');
}

if ((mode === 'high' || mode === 'low') && !callback.listener) {
Expand Down

0 comments on commit 08f0959

Please sign in to comment.