From 7f1f4aeee136c006ae16f4207eb7589af80e9d31 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Mon, 15 Jan 2024 17:51:42 +0100 Subject: MAX444006: Implement setAmbientConfig --- src/app/datalogger/main.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/app/datalogger') diff --git a/src/app/datalogger/main.cc b/src/app/datalogger/main.cc index 5e3208f..de0a782 100644 --- a/src/app/datalogger/main.cc +++ b/src/app/datalogger/main.cc @@ -365,9 +365,11 @@ int main(void) #endif #ifdef CONFIG_driver_max44006 - unsigned char ret; - if ((ret = max44006.init()) != 0) { - kout << "MAX44006 Initialization failed: " << ret << endl; + if (!max44006.init()) { + kout << "MAX44006 Initialization failed" << endl; + } + if (!max44006.setAmbientConfig(max44006.AMBPGA_11)) { + kout << "MAX44006 setAmbientConfig failed" << endl; } #endif -- cgit v1.2.3