Commit graph

18 commits

Author SHA1 Message Date
Drew Fustini
3a5d23d01b Fix warning about casting incompatible function types #308
Debian 10 (Buster) has gcc 8.2 which warns about:

cast between incompatible function types from ‘PyObject * (*)(PyObject *, PyObject *, PyObject *)’

The solution is to cast to '(PyCFunction)(void *)'
2019-12-06 10:26:49 +00:00
Drew Fustini
a22cd5fd24
Fix seg fault of PWM in Python 3.6 (#189)
PWM.set_frequency() and PWM.set_duty_cycle()
were resulting in a seg fault inside the
call to PyArg_ParseTupleAndKeywords().

Signed-off-by: Drew Fustini <drew@pdp7.com>
2017-11-25 05:24:44 -06:00
Drew Fustini
ca0a4afcdb Filter DEBUG syslog to avoid poor performance #188 2017-11-08 03:03:52 -06:00
Drew Fustini
1edb20770e change syslog mask level to DEBUG 2017-10-31 03:13:50 +00:00
cocasema
6c489fce8e Add syslog and debugging messages 2017-03-31 02:16:21 -07:00
Drew Fustini
b1ad088164 Fix unused parameter warning [-Werror=unused-parameter] 2017-01-10 10:52:01 +00:00
Matthew West
cd2456b157 Fix PWM tests to reflect 4.1+ 2016-08-08 12:09:19 -07:00
Matthew West
ac1104c55b Fix bug with setting frequency, fix stopping 2016-08-08 11:18:27 -07:00
Matthew West
8fe1336b0a Bug fixes almost to stability 2016-08-08 10:51:15 -07:00
Matthew West
6b2aa7aabc Change return value convention for errors
Replace 1 for success and 0/-1 for failure with an enum type.
2016-08-05 13:19:54 -07:00
Justin Cooper
9866c2eaa7 remove dead code 2014-05-27 19:40:32 +00:00
Justin Cooper
a322ddc2c0 fix for polarity not getting set properly, add polarity as optional parameter in start 2013-08-15 03:55:08 +00:00
Justin Cooper
670bfcbf1c better error handling of load_device_tree through adc, pwm, and uart 2013-07-30 19:34:24 +00:00
Justin Cooper
465ce81caa remove unused code 2000-01-03 02:00:27 +00:00
Justin Cooper
5343ed160a add copyright and license notices 2000-01-01 00:04:25 +00:00
Justin Cooper
2a459f3c8c remove debugging statement 2013-06-12 03:31:07 +00:00
Justin Cooper
844a19570e pwm working per the tests 2013-06-11 20:45:46 +00:00
Justin Cooper
1258c651cb Initial Commit 2013-06-10 20:16:39 +00:00