kauailabs / allwpilib

Fork of Official Repository of WPILibJ and WPILibC, which contain in addition a HAL for the KauaiLabs VMX-pi.
Other
1 stars 3 forks source link

SPI HAL Write/Read functions return incorrect status codes #38

Closed kauailabs closed 4 years ago

kauailabs commented 4 years ago

The wpi library SPI HAL Write and Read functions currently return 0 for success; this is incorrect. Rather these functions should return the actual number of bytes successfully transmitted.

The current behavior is causing some libraries to assume that these transfers did not work successfully, when in fact they worked as expected.

kauailabs commented 4 years ago

This issue is now resolved.

This is resolved in the VMX-pi WPI Library v. 2020.3.2-vmxpi-beta-1.

To retrieve this library, update the GradleRIO plugin version to "2020.3.2-beta-3".