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

pwm1 works on the chip pro, commit to allow me to reset all the changes that broke stuff on the normal chip

This commit is contained in:
Robert Wolterman
2017-02-25 12:48:36 -06:00
parent f66740b797
commit c21c431b7b
2 changed files with 11 additions and 7 deletions

View File

@ -76,13 +76,11 @@ static int init_module(void)
// python function value = is_chip_pro
static PyObject *py_is_chip_pro(PyObject *self, PyObject *args)
{
int is_cpro;
PyObject *py_value;
if (!module_setup) {
init_module();
}
py_value = Py_BuildValue("i", ISCHIPPRO);
is_cpro = is_this_chippro();
py_value = Py_BuildValue("i", is_cpro);
return py_value;
}