spi: change to new flag variable