diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2021-12-22 08:33:24 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2021-12-22 08:33:24 +0100 |
commit | da2e2b062c89206e666ac7ade175588df43ed399 (patch) | |
tree | 3939dc3840f0ffef91d7b650e4ee405ac989f0b3 | |
parent | 433de03145f6e90e9db5f6f467488acf82e9318b (diff) |
i2cdetect: fix hardware i2c check
-rw-r--r-- | src/app/i2cdetect/Makefile.inc | 1 | ||||
-rw-r--r-- | src/app/i2cdetect/main.cc | 2 |
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" |