Fix checking if we wrote 4 SPI registers.