diff --git a/CHANGELOG.rst b/CHANGELOG.rst index db09085..63cb5e4 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,3 +1,7 @@ +0.6.1 +--- +* Fixing implementation for #76 + 0.6 --- * Random comment cleanup diff --git a/debian/changelog b/debian/changelog index 81f3434..30dcef5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +chip-io (0.6.1-1) unstable; urgency=low + + * Fixing implementation for #76 + + -- Robert Wolterman Wed, 09 Aug 2017 23:09:00 -0600 + chip-io (0.6.0-1) unstable; urgency=low * Random comment cleanup diff --git a/debian/files b/debian/files index e58c027..6b9ae85 100644 --- a/debian/files +++ b/debian/files @@ -1,2 +1,2 @@ -python-chip-io_0.5.9-1_armhf.deb python optional -python3-chip-io_0.5.9-1_armhf.deb python optional +python-chip-io_0.6.1-1_armhf.deb python optional +python3-chip-io_0.6.1-1_armhf.deb python optional diff --git a/setup.py b/setup.py index 290597a..6efe2e2 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ classifiers = ['Development Status :: 3 - Alpha', 'Topic :: System :: Hardware'] setup(name = 'CHIP_IO', - version = '0.5.9', + version = '0.6.1', author = 'Robert Wolterman', author_email = 'robert.wolterman@gmail.com', description = 'A module to control CHIP IO channels', diff --git a/source/constants.c b/source/constants.c index 42636da..70d9d32 100644 --- a/source/constants.c +++ b/source/constants.c @@ -85,6 +85,6 @@ void define_constants(PyObject *module) bcm = Py_BuildValue("i", BCM); PyModule_AddObject(module, "BCM", bcm); - version = Py_BuildValue("s", "0.5.9"); + version = Py_BuildValue("s", "0.6.1"); PyModule_AddObject(module, "VERSION", version); } diff --git a/source/event_gpio.c b/source/event_gpio.c index b9d70b3..93f1b97 100644 --- a/source/event_gpio.c +++ b/source/event_gpio.c @@ -171,9 +171,10 @@ int gpio_export(int gpio) len = snprintf(str_gpio, sizeof(str_gpio), "%d", gpio); BUF2SMALL(str_gpio); ssize_t s = write(fd, str_gpio, len); e_no = errno; - if (DEBUG) && (e_no) { - printf("gpio_export: something went wrong: %s\n", strerror(e_no)); - } + if (DEBUG) + if (e_no) + printf("gpio_export: something went wrong: %s\n", strerror(e_no)); + close(fd); if (s != len) {