diff --git a/examples/linux_userspace.c b/examples/linux_userspace.c index 0b8fc9a..55633e8 100644 --- a/examples/linux_userspace.c +++ b/examples/linux_userspace.c @@ -20,10 +20,8 @@ * \include linux_userspace.c */ -#ifdef __KERNEL__ #include #include -#endif /******************************************************************************/ /*! System header files */ @@ -154,15 +152,12 @@ int main(int argc, char* argv[]) exit(1); } -#ifdef __KERNEL__ if (ioctl(id.fd, I2C_SLAVE, id.dev_addr) < 0) { fprintf(stderr, "Failed to acquire bus access and/or talk to slave.\n"); exit(1); } -#endif - /* Make sure to select BME280_I2C_ADDR_PRIM or BME280_I2C_ADDR_SEC as needed */ id.dev_addr = BME280_I2C_ADDR_PRIM;