Code won't move past the while loop in SPI_Send