Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The data type of the csPin member of spi_device_config was wrong. The field will be set to -1 if no pin is set or manual cs-pin control is used. Then the comparisons with -1 in the code will not work as expected, see https://stackoverflow.com/questions/36770376/comparing-unsigned-char-to-a-negative-number So we use "char" instead of "byte" and the code behaves as expected.
- Loading branch information