From 277600fd5179f93f3ed011264d5a8d877312f252 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 20 Dec 2021 19:57:47 +0100 Subject: i2cdetect, dataloger: use config variable for i2c include --- src/app/i2cdetect/main.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/app/i2cdetect/main.cc') diff --git a/src/app/i2cdetect/main.cc b/src/app/i2cdetect/main.cc index ab954d7..de524a6 100644 --- a/src/app/i2cdetect/main.cc +++ b/src/app/i2cdetect/main.cc @@ -6,10 +6,9 @@ #include "arch.h" #include "driver/gpio.h" #include "driver/stdout.h" -#ifdef DRIVER_HARDWARE_I2C +#if defined(CONFIG_meta_driver_i2c) #include "driver/i2c.h" -#endif -#ifdef CONFIG_driver_softi2c +#elif defined(CONFIG_driver_softi2c) #include "driver/soft_i2c.h" #endif -- cgit v1.2.3