Skip to content

Commit db739ea

Browse files
author
Jason Kridner
committed
Fix reference to LSBFIRST in shiftOut
Reported by Fred Kerr at https://groups.google.com/d/msg/beagleboard/iT3JsATQIjI/qJJmwC-DAAAJ
1 parent 59407b4 commit db739ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ f.shiftOut = function(dataPin, clockPin, bitOrder, val, callback) {
322322
next();
323323
} else {
324324
for(i = 0; i < 8; i++) {
325-
if(bitOrder == b.LSBFIRST) {
325+
if(bitOrder == g.LSBFIRST) {
326326
bit = val & (1 << i);
327327
} else {
328328
bit = val & (1 << (7 - i));

0 commit comments

Comments
 (0)