1
0
mirror of https://github.com/xtacocorex/CHIP_IO synced 2025-07-20 04:43:21 +00:00

Corrects backwards polarity

This commit is contained in:
Brady L. Hurlburt
2016-05-06 17:26:02 +00:00
parent 0cae62be43
commit f5063c199c
2 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@ static PyObject *py_start_channel(PyObject *self, PyObject *args, PyObject *kwar
char *channel;
float frequency = 2000.0;
float duty_cycle = 0.0;
int polarity = 1;
int polarity = 0;
static char *kwlist[] = {"channel", "duty_cycle", "frequency", "polarity", NULL};
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s|ffi", kwlist, &channel, &duty_cycle, &frequency, &polarity)) {