chiark / gitweb /
Bother. Small issue crept into the SPI code.
authorGordon Henderson <projects@drogon.net>
Mon, 13 May 2013 19:10:41 +0000 (20:10 +0100)
committerGordon Henderson <projects@drogon.net>
Mon, 13 May 2013 19:10:41 +0000 (20:10 +0100)
gpio/gpio.c
wiringPi/wiringPiSPI.c

index 8e17ae0f7169333f3128d051dc1c842558f81e6f..e7099c83228108abd4cc9d98eb4ab409253ad0a0 100644 (file)
@@ -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 ;
index ded07ba6797a315313316e9998b3b19b2cfdaf0f..215a0277440813110c7dcf1c9f8e38efd015b452 100644 (file)
@@ -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 ;