We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ddf12e commit c00ee1dCopy full SHA for c00ee1d
1 file changed
examples/linux_userspace.c
@@ -20,10 +20,8 @@
20
* \include linux_userspace.c
21
*/
22
23
-#ifdef __KERNEL__
24
#include <linux/i2c-dev.h>
25
#include <sys/ioctl.h>
26
-#endif
27
28
/******************************************************************************/
29
/*! System header files */
@@ -154,15 +152,12 @@ int main(int argc, char* argv[])
154
152
exit(1);
155
153
}
156
157
158
if (ioctl(id.fd, I2C_SLAVE, id.dev_addr) < 0)
159
{
160
fprintf(stderr, "Failed to acquire bus access and/or talk to slave.\n");
161
162
163
164
165
-
166
/* Make sure to select BME280_I2C_ADDR_PRIM or BME280_I2C_ADDR_SEC as needed */
167
id.dev_addr = BME280_I2C_ADDR_PRIM;
168
0 commit comments