Add proper SPI transmit code