fix error in spi chip select calculation