From c00ee1d144090983ffa87d7b27d279d7b4860eb2 Mon Sep 17 00:00:00 2001 From: Bernhard Bablok Date: Thu, 10 Jun 2021 13:57:10 +0200 Subject: [PATCH] integrate fixes from pull-request #80 --- examples/linux_userspace.c | 5 ----- 1 file changed, 5 deletions(-) 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;