Compile error when using SPI library
jagot opened this issue · 2 comments
jagot commented
There is no byte result;
in the reverse
function anymore, preventing the compilation:
ATTinyCore/avr/libraries/SPI/SPI.cpp
Lines 282 to 302 in 1747efb
I am not too good with assembly, but it seems that the reverse operation is performed in-place, and the result is then stored in x
. I tried deleting the return
statement, and the code compiles, but with a warning for missing return
statement in a non-void
function.
sleemanj commented
I believe return(result)
shoudl be return(x)
jagot commented
Of course! That makes total sense.