diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-01-15 17:51:42 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-01-15 17:51:42 +0100 |
commit | 7f1f4aeee136c006ae16f4207eb7589af80e9d31 (patch) | |
tree | 974c3a261e264a2d51cde877986047a0b99ff12a /src/app | |
parent | 480c55a52673f555ab774233fa482b700278cdd4 (diff) |
MAX444006: Implement setAmbientConfig
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/datalogger/main.cc | 8 |
1 files changed, 5 insertions, 3 deletions
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 |