mirror of
https://github.com/xtacocorex/CHIP_IO
synced 2025-07-20 04:43:21 +00:00
Some refactoring of the edge detection code to clean stuff up, added more tests
This commit is contained in:
@ -76,6 +76,6 @@ void define_constants(PyObject *module)
|
||||
both_edge = Py_BuildValue("i", BOTH_EDGE);
|
||||
PyModule_AddObject(module, "BOTH", both_edge);
|
||||
|
||||
version = Py_BuildValue("s", "0.1.0");
|
||||
version = Py_BuildValue("s", "0.1.1");
|
||||
PyModule_AddObject(module, "VERSION", version);
|
||||
}
|
||||
|
@ -175,7 +175,7 @@ int fd_lookup(int gpio)
|
||||
|
||||
int fde_lookup(int gpio)
|
||||
{
|
||||
struct callbacks *cb = callbacks;
|
||||
struct callback *cb = callbacks;
|
||||
while (cb != NULL)
|
||||
{
|
||||
if (cb->gpio == gpio)
|
||||
|
Reference in New Issue
Block a user