Skip to content

Commit

Permalink
delayMicrosends fixed
Browse files Browse the repository at this point in the history
I was wondering why my LED was blinking so slowly… ;)
Great work though, thanks a lot!
  • Loading branch information
tjanson committed Aug 24, 2014
1 parent ec666bb commit 0f2433d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bindings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ IMPLEMENT(delayMicroseconds) {

howLong = args[0]->Uint32Value();

::delay(howLong);
::delayMicroseconds(howLong);

return scope.Close(Undefined());
}
Expand Down Expand Up @@ -2495,4 +2495,4 @@ void init(Handle<Object> target) {
EXPORT(shiftOut);
}

NODE_MODULE(wiringPi, init)
NODE_MODULE(wiringPi, init)

0 comments on commit 0f2433d

Please sign in to comment.