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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user