浏览代码

Bother. Small issue crept into the SPI code.

pull/22/head
Gordon Henderson 11 年前
父节点
当前提交
25895a8670
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      gpio/gpio.c
  2. +1
    -1
      wiringPi/wiringPiSPI.c

+ 1
- 1
gpio/gpio.c 查看文件

@@ -48,7 +48,7 @@ extern int wiringPiDebug ;
# define FALSE (1==2)
#endif

#define VERSION "2.02"
#define VERSION "2.03"
#define I2CDETECT "/usr/sbin/i2cdetect"

static int wpMode ;


+ 1
- 1
wiringPi/wiringPiSPI.c 查看文件

@@ -114,7 +114,7 @@ int wiringPiSPISetup (int channel, int speed)
if (ioctl (fd, SPI_IOC_WR_BITS_PER_WORD, &spiBPW) < 0)
return wiringPiFailure (WPI_ALMOST, "SPI BPW Change failure: %s\n", strerror (errno)) ;

if (ioctl (fd, SPI_IOC_WR_MAX_SPEED_HZ, &speed) < 0) return -1 ;
if (ioctl (fd, SPI_IOC_WR_MAX_SPEED_HZ, &speed) < 0)
return wiringPiFailure (WPI_ALMOST, "SPI Speed Change failure: %s\n", strerror (errno)) ;

return fd ;


正在加载...
取消
保存