mirror of
https://github.com/Ascend/ascend_community_projects.git
synced 2025-09-26 20:01:17 +08:00
update A200DK_GPIO_I2C/smbus/src/py_smbus.c.
Signed-off-by: lqw <616070323@qq.com>
This commit is contained in:
@@ -227,7 +227,7 @@ static PyObject *py_block_process_call(PyObject *self, PyObject *args) {
|
||||
PyArg_Parse(list_item, "i", &tmp);
|
||||
values[i] = (unsigned char)tmp;
|
||||
}
|
||||
unsigned char *result = write_i2c_block_data(address, command, values);
|
||||
unsigned char *result = block_process_call(address, command, values);
|
||||
free(values);
|
||||
PyObject *result_list = PyList_New(0);
|
||||
for (int i = 0; i < length; i++)
|
||||
|
Reference in New Issue
Block a user