summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/app/i2cdetect/Makefile.inc1
-rw-r--r--src/app/i2cdetect/main.cc2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/app/i2cdetect/Makefile.inc b/src/app/i2cdetect/Makefile.inc
index 40fe162..8a0b64e 100644
--- a/src/app/i2cdetect/Makefile.inc
+++ b/src/app/i2cdetect/Makefile.inc
@@ -6,5 +6,6 @@
ifdef app
override arch_drivers += ,i2c
+ CONFIG_meta_driver_i2c = y
CONFIG_meta_driver_hardware_i2c = y
endif
diff --git a/src/app/i2cdetect/main.cc b/src/app/i2cdetect/main.cc
index de524a6..18800e5 100644
--- a/src/app/i2cdetect/main.cc
+++ b/src/app/i2cdetect/main.cc
@@ -6,7 +6,7 @@
#include "arch.h"
#include "driver/gpio.h"
#include "driver/stdout.h"
-#if defined(CONFIG_meta_driver_i2c)
+#if defined(CONFIG_meta_driver_hardware_i2c)
#include "driver/i2c.h"
#elif defined(CONFIG_driver_softi2c)
#include "driver/soft_i2c.h"