Fixed so that it works without SPI_WAITFORTxREADY defined