diff --git a/examples/linux_userspace.c b/examples/linux_userspace.c index 62c8eb5..1e62b24 100644 --- a/examples/linux_userspace.c +++ b/examples/linux_userspace.c @@ -15,10 +15,8 @@ * \include linux_userspace.c */ -#ifdef __KERNEL__ #include #include -#endif /******************************************************************************/ /*! System header files */ @@ -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);