Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions examples/linux_userspace.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,8 @@
* \include linux_userspace.c
*/

#ifdef __KERNEL__
#include <linux/i2c-dev.h>
#include <sys/ioctl.h>
#endif

/******************************************************************************/
/*! System header files */
Expand Down Expand Up @@ -143,13 +141,11 @@ int main(int argc, char* argv[])
exit(1);
}

#ifdef __KERNEL__
if (ioctl(fd, I2C_SLAVE, dev.dev_id) < 0)
{
fprintf(stderr, "Failed to acquire bus access and/or talk to slave.\n");
exit(1);
}
#endif

/* Initialize the bme280 */
rslt = bme280_init(&dev);
Expand Down