fixed error in spi code