gpio.c: Fixed typo
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
committed by
Brendan Le Foll
parent
e6c3dd24a6
commit
b8e1f79b4d
@@ -235,7 +235,7 @@ mraa_gpio_interrupt_handler(void* arg)
|
|||||||
#ifdef SWIGPYTHON
|
#ifdef SWIGPYTHON
|
||||||
// In order to call a python object (all python functions are objects) we
|
// In order to call a python object (all python functions are objects) we
|
||||||
// need to aquire the GIL (Global Interpreter Lock). This may not always be
|
// need to aquire the GIL (Global Interpreter Lock). This may not always be
|
||||||
// nessecary but especially if doing IO (like print()) python will segfault
|
// necessary but especially if doing IO (like print()) python will segfault
|
||||||
// if we do not hold a lock on the GIL
|
// if we do not hold a lock on the GIL
|
||||||
PyGILState_STATE gilstate = PyGILState_Ensure();
|
PyGILState_STATE gilstate = PyGILState_Ensure();
|
||||||
PyObject* arglist;
|
PyObject* arglist;
|
||||||
|
|||||||
Reference in New Issue
Block a user