Private
Public Access
2
0

isr.js: add node.js isr example

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2015-02-18 14:30:22 +00:00
parent 008184c305
commit d6891e8bd7
2 changed files with 11 additions and 2 deletions

View File

@@ -140,8 +140,7 @@ class Gpio {
mraa_result_t isr(Edge mode, v8::Handle<v8::Function> func) {
m_v8isr = v8::Persistent<v8::Function>::New(func);
mraa_gpio_isr(m_gpio, (gpio_edge_t) mode, &uvwork, this);
return MRAA_SUCCESS;
return mraa_gpio_isr(m_gpio, (gpio_edge_t) mode, &uvwork, this);
}
#else
/**