Skip to content

Commit

Permalink
fix patch & typos in wiringPiISR
Browse files Browse the repository at this point in the history
  • Loading branch information
nekuz0r committed Feb 27, 2015
1 parent a1ff0fe commit b451a4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion patchs/devLib_Makefile.patch
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
CC = gcc
-INCLUDE = -I.
+INCLUDE = -I. -I$(PWD)/../wiringPi
DEFS = -D_GNU_SOURCE
CFLAGS = $(DEBUG) -Wformat=2 -Wall $(INCLUDE) -Winline -pipe -fPIC

LIBS =
4 changes: 2 additions & 2 deletions src/wiringPiISR.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static void processInterrupt(uv_work_t* req, int status) {
}

static void UV_NOP(uv_work_t*) {}
static void UV_ASYNC_NOP(uv_async_t* handler, int status) {}
static void UV_ASYNC_NOP(uv_async_t* handler) {}

void processNativeInterrupt(int pin) {
unsigned int now = ::micros();
Expand Down Expand Up @@ -188,7 +188,7 @@ IMPLEMENT(wiringPiISRCancel) {
int pin = GET_ARGUMENT_AS_INT32(0);

::wiringPiISRCancel(pin);
uv_close((uv_handle_t*)&asyncHandlers[pin], null);
uv_close((uv_handle_t*)&asyncHandlers[pin], NULL);

SCOPE_CLOSE(UNDEFINED());
}
Expand Down

0 comments on commit b451a4f

Please sign in to comment.