diff --git a/src/app/datalogger/main.cc b/src/app/datalogger/main.cc
index 9083825c9b7ab79a1c77d12b8710e969351add17..bf34b10e4cbd4accbd116bb8807b335bafdb0c2d 100644
--- a/src/app/datalogger/main.cc
+++ b/src/app/datalogger/main.cc
@@ -154,7 +154,7 @@ void loop(void)
 	kout << "Magnet Z " << mz << endl;
 #endif
 
-#ifdef CONFIG_driver_max44009
+#ifdef CONFIG_driver_max44006
 	kout << "MAX44006 Temperature: " << max44006.getTemperature() << " counts" << endl;
 	float r, g, b, c, ir;
 	if (max44006.getLight(&r, &g, &b, &c, &ir)) {