Skip to content

Commit

Permalink
wiringPiISR callback remove pin
Browse files Browse the repository at this point in the history
Useless since callback is associated with interrupt on a given pin
  • Loading branch information
nekuz0r committed Jul 4, 2014
1 parent b7ab4f5 commit 947b1b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/wiringPiISR.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ static void processInterrupt(uv_work_t* req, int status) {
Persistent<Function> callback = interruptCallbackMapping[work->pin];

Local<Value> argv[] = {
Local<Value>::New(Int32::New(work->pin)),
Local<Value>::New(Uint32::New(work->delta))
};

callback->Call(Context::GetCurrent()->Global(), 2, argv);
callback->Call(Context::GetCurrent()->Global(), 1, argv);

delete work;
}
Expand Down

0 comments on commit 947b1b2

Please sign in to comment.