1
0
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:
Robert Wolterman
2016-07-11 21:14:40 -05:00
parent bff65d346d
commit ea4a21235d
5 changed files with 36 additions and 6 deletions

View File

@ -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);
}

View File

@ -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)