Skip to content

Commit 6af974c

Browse files
committed
fixing implementation of #76 since i didn't actually test it
1 parent 4670e44 commit 6af974c

File tree

6 files changed

+18
-7
lines changed

6 files changed

+18
-7
lines changed

CHANGELOG.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
0.6.1
2+
---
3+
* Fixing implementation for #76
4+
15
0.6
26
---
37
* Random comment cleanup

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
chip-io (0.6.1-1) unstable; urgency=low
2+
3+
* Fixing implementation for #76
4+
5+
-- Robert Wolterman <[email protected]> Wed, 09 Aug 2017 23:09:00 -0600
6+
17
chip-io (0.6.0-1) unstable; urgency=low
28

39
* Random comment cleanup

debian/files

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
python-chip-io_0.5.9-1_armhf.deb python optional
2-
python3-chip-io_0.5.9-1_armhf.deb python optional
1+
python-chip-io_0.6.1-1_armhf.deb python optional
2+
python3-chip-io_0.6.1-1_armhf.deb python optional

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
'Topic :: System :: Hardware']
1414

1515
setup(name = 'CHIP_IO',
16-
version = '0.5.9',
16+
version = '0.6.1',
1717
author = 'Robert Wolterman',
1818
author_email = '[email protected]',
1919
description = 'A module to control CHIP IO channels',

source/constants.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,6 @@ void define_constants(PyObject *module)
8585
bcm = Py_BuildValue("i", BCM);
8686
PyModule_AddObject(module, "BCM", bcm);
8787

88-
version = Py_BuildValue("s", "0.5.9");
88+
version = Py_BuildValue("s", "0.6.1");
8989
PyModule_AddObject(module, "VERSION", version);
9090
}

source/event_gpio.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,10 @@ int gpio_export(int gpio)
171171

172172
len = snprintf(str_gpio, sizeof(str_gpio), "%d", gpio); BUF2SMALL(str_gpio);
173173
ssize_t s = write(fd, str_gpio, len); e_no = errno;
174-
if (DEBUG) && (e_no) {
175-
printf("gpio_export: something went wrong: %s\n", strerror(e_no));
176-
}
174+
if (DEBUG)
175+
if (e_no)
176+
printf("gpio_export: something went wrong: %s\n", strerror(e_no));
177+
177178
close(fd);
178179
if (s != len)
179180
{

0 commit comments

Comments
 (0)