bug fix: SS was not declared in the spi_write_and_read(.. function