diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-12-08 18:58:17 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-12-08 18:58:17 +0100 |
commit | a2316cb4cf92ba507f07b654f153682ed587605c (patch) | |
tree | 1c01c9f627ab5196c531ec6e71d067d6bb1cc1cf /src/app/datalogger/main.cc | |
parent | 7baef4fb7bbbce9d802099548aebc8a3450c6481 (diff) |
hdc1080: add explicit measure() function
Diffstat (limited to 'src/app/datalogger/main.cc')
-rw-r--r-- | src/app/datalogger/main.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/app/datalogger/main.cc b/src/app/datalogger/main.cc index f9484b5..2d8a8e6 100644 --- a/src/app/datalogger/main.cc +++ b/src/app/datalogger/main.cc @@ -127,6 +127,8 @@ void loop(void) hdc1080.getTemp(); } */ + hdc1080.measure(); + arch.delay_ms(10); kout << "HDC1080 temperature " << hdc1080.getTemp() << " degC" << endl; kout << "HDC1080 humidity " << hdc1080.getRH() << " %H" << endl; #endif @@ -253,6 +255,7 @@ int main(void) #ifdef CONFIG_driver_mpu9250 mpu9250.init(); + mpu9250.nineAxis(); #endif #ifdef CONFIG_driver_tsl2591 |