summaryrefslogtreecommitdiff
path: root/src/app/i2cdetect/main.cc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-12-20 19:57:47 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-12-20 19:57:47 +0100
commit277600fd5179f93f3ed011264d5a8d877312f252 (patch)
tree2cdb8084f19483bf2712b4de24e18fc41f72fa16 /src/app/i2cdetect/main.cc
parentafe39c8baefc92f0d8f9c719990299f6affa498d (diff)
i2cdetect, dataloger: use config variable for i2c include
Diffstat (limited to 'src/app/i2cdetect/main.cc')
-rw-r--r--src/app/i2cdetect/main.cc5
1 files changed, 2 insertions, 3 deletions
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