Fixed spi_master and mcp4922 bugs