summaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-12-26 11:39:32 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-12-26 11:39:32 +0100
commit7654a57f097567a65211f7b3fffdb0c00d721205 (patch)
treee94b5b17bdc7e602f9404bef509418e3c1ee1c1b /src/app
parentba778ead40ddf8f1282e78cc8b5dd42e6c4fe1c5 (diff)
datalogger: Initialize I2C if meta_driver_i2c is set
Diffstat (limited to 'src/app')
-rw-r--r--src/app/datalogger/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/datalogger/main.cc b/src/app/datalogger/main.cc
index e916bff..c6252b2 100644
--- a/src/app/datalogger/main.cc
+++ b/src/app/datalogger/main.cc
@@ -178,7 +178,7 @@ int main(void)
gpio.setup();
kout.setup();
-#if defined(DRIVER_I2C) || defined(CONFIG_driver_softi2c)
+#if defined(CONFIG_meta_driver_i2c)
if (i2c.setup() != 0) {
kout << "I2C setup FAILED" << endl;
return 1;