Removed many warnings from spi_2.c