summaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-12-08 18:58:17 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-12-08 18:58:17 +0100
commita2316cb4cf92ba507f07b654f153682ed587605c (patch)
tree1c01c9f627ab5196c531ec6e71d067d6bb1cc1cf /src/app
parent7baef4fb7bbbce9d802099548aebc8a3450c6481 (diff)
hdc1080: add explicit measure() function
Diffstat (limited to 'src/app')
-rw-r--r--src/app/datalogger/main.cc3
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