Permalink
Browse files

pinMode: default to 'pulldown'

This is the way it was before and it broke some users code to change it.
  • Loading branch information...
1 parent a769249 commit a9268e5d172dda457ed126875bc610081f1afec4 @jadonk committed May 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 bonescript/index.js
View
@@ -136,7 +136,7 @@ getPinMode = exports.getPinMode = function(pin, callback) {
};
pinMode = exports.pinMode = function(pin, direction, mux, pullup, slew, callback) {
- pullup = pullup || 'disabled';
+ pullup = pullup || 'pulldown';
slew = slew || 'fast';
mux = mux || 7; // default to GPIO mode
//console.log('pinmode(' + [pin.key, direction, mux, pullup, slew].join(',') + ')');

0 comments on commit a9268e5

Please sign in to comment.