fixed SPI code to properly use the right file descriptor