From 0f2433de5497a87d138bb4558314bbc6aab7cca6 Mon Sep 17 00:00:00 2001 From: tjanson Date: Mon, 25 Aug 2014 01:12:06 +0200 Subject: [PATCH] delayMicrosends fixed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I was wondering why my LED was blinking so slowly… ;) Great work though, thanks a lot! --- src/bindings.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bindings.cc b/src/bindings.cc index 7bfe32c..c372009 100644 --- a/src/bindings.cc +++ b/src/bindings.cc @@ -599,7 +599,7 @@ IMPLEMENT(delayMicroseconds) { howLong = args[0]->Uint32Value(); - ::delay(howLong); + ::delayMicroseconds(howLong); return scope.Close(Undefined()); } @@ -2495,4 +2495,4 @@ void init(Handle target) { EXPORT(shiftOut); } -NODE_MODULE(wiringPi, init) \ No newline at end of file +NODE_MODULE(wiringPi, init)