Skip to content

Commit

Permalink
Merge pull request #34 from taoyuan/master
Browse files Browse the repository at this point in the history
Added scope for dispatchInterrupt and solved #30
  • Loading branch information
nekuz0r committed Jan 5, 2016
2 parents 573145f + bde3481 commit 139f5da
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# CHANGELOG

## v2.1.0 *[not released yet]*
## v2.1.1 *[not released yet]*
* **Fix:** added scope for dispatchInterrupt `taoyuan`

## v2.1.0 *[Aug 1 2015]*
* **Update:** libWiringPi to [custom][nekuz0r-libWiringPi] v2.25 `nekuz0r`
* **Update:** wiringPiISR now keeps event loop running `nekuz0r`
* **Update:** piModelNames string array `nekuz0r`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wiring-pi",
"version": "2.1.0",
"version": "2.1.1",
"description": "Bindings to wiringPi",
"main": "lib/exports.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/wiringPiISR.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ static void dispatchInterrupt(uv_async_t* handle, int status) {

#if NODE_VERSION_AT_LEAST(0, 11, 0)
v8::Isolate* isolate = v8::Isolate::GetCurrent();
HandleScope scope(isolate);
v8::Local<Function> callback = v8::Local<Function>::New(isolate, interrupt_callbacks[data->pin]);
#else
v8::Local<Function> callback = v8::Local<Function>::New(interrupt_callbacks[data->pin]);
Expand Down

0 comments on commit 139f5da

Please sign in to comment.