This website works better with JavaScript.
Home
Help
Sign In
heuzef
/
WiringPi
mirror of
https://github.com/WiringPi/WiringPi.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
9
Wiki
Activity
Browse Source
Gah. another small fix to the I2C code.
pull/22/head
Gordon Henderson
11 years ago
parent
a7c21d3efc
commit
41fb1b9e2a
2 changed files
with
2 additions
and
2 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
gpio/gpio.c
+1
-1
wiringPi/wiringPiI2C.c
+ 1
- 1
gpio/gpio.c
View File
@@ -48,7 +48,7 @@ extern int wiringPiDebug ;
# define FALSE (1==2)
# define FALSE (1==2)
#endif
#endif
#define VERSION "2.0
4
"
#define VERSION "2.0
5
"
#define I2CDETECT "/usr/sbin/i2cdetect"
#define I2CDETECT "/usr/sbin/i2cdetect"
static int wpMode ;
static int wpMode ;
+ 1
- 1
wiringPi/wiringPiI2C.c
View File
@@ -150,7 +150,7 @@ int wiringPiI2CReadReg16 (int fd, int reg)
if (i2c_smbus_access (fd, I2C_SMBUS_READ, reg, I2C_SMBUS_WORD_DATA, &data))
if (i2c_smbus_access (fd, I2C_SMBUS_READ, reg, I2C_SMBUS_WORD_DATA, &data))
return -1 ;
return -1 ;
else
else
return data.
byte
& 0xFFFF ;
return data.
word
& 0xFFFF ;
}
}
Write
Preview
Loading…
Cancel
Save