Recoded master SPI handling