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

randomness for #32 and #48. cleanup of removing the spi function in common.c/.h since it isn't chip specific

This commit is contained in:
Robert Wolterman
2017-01-28 20:05:53 +00:00
parent cb4e272a35
commit a839661c3b
3 changed files with 99 additions and 87 deletions

View File

@ -742,10 +742,6 @@ static PyObject *py_selftest(PyObject *self, PyObject *args)
ASSRT(0 == build_path("/home", "ip", fp, sizeof(fp)));
ASSRT(0 == build_path("/NOTFOUND", "ch", fp, sizeof(fp)));
printf("Testing get_spi_bus_path_number\n");
ASSRT(2 == get_spi_bus_path_number(0)); /* doesn't really work on CHIP */
ASSRT(2 == get_spi_bus_path_number(1)); /* doesn't really work on CHIP */
printf("Testing error message buffer\n");
clear_error_msg();
ASSRT(0 == strlen(get_error_msg()));