mirror of
https://github.com/xtacocorex/CHIP_IO
synced 2025-07-20 04:43:21 +00:00
fixing implementation of #76 since i didn't actually test it
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
0.6.1
|
||||
---
|
||||
* Fixing implementation for #76
|
||||
|
||||
0.6
|
||||
---
|
||||
* Random comment cleanup
|
||||
|
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
||||
chip-io (0.6.1-1) unstable; urgency=low
|
||||
|
||||
* Fixing implementation for #76
|
||||
|
||||
-- Robert Wolterman <robert.wolterman@gmail.com> Wed, 09 Aug 2017 23:09:00 -0600
|
||||
|
||||
chip-io (0.6.0-1) unstable; urgency=low
|
||||
|
||||
* Random comment cleanup
|
||||
|
4
debian/files
vendored
4
debian/files
vendored
@ -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
|
||||
|
2
setup.py
2
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',
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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) {
|
||||
if (DEBUG)
|
||||
if (e_no)
|
||||
printf("gpio_export: something went wrong: %s\n", strerror(e_no));
|
||||
}
|
||||
|
||||
close(fd);
|
||||
if (s != len)
|
||||
{
|
||||
|
Reference in New Issue
Block a user