Code clean up and handling FIFO errors

Revision:
62:a5b88f433406
Parent:
58:aa9cd5072f66
diff -r 0f16a2e3b58b -r a5b88f433406 i2c0_sensirionSHT3X_config.c
--- a/i2c0_sensirionSHT3X_config.c	Tue Mar 31 04:50:37 2020 +0000
+++ b/i2c0_sensirionSHT3X_config.c	Wed Apr 08 10:05:08 2020 +0000
@@ -52,10 +52,11 @@
         .measurement = {
             .externalRefVoltage=0.0,
             .AVDDVoltage=3.0,
-            .operatingMode = ADMW1001_OPERATING_MODE_CONTINUOUS,
+            .operatingMode = ADMW1001_OPERATING_MODE_SINGLECYCLE,
             .dataReadyMode = ADMW1001_DATAREADY_PER_CYCLE,
             .cycleInterval = 0,
             .excitationState = ADMW1001_ADC_EXC_STATE_CYCLE_POWER,
+            .fifoNumCycles = 1,
         },
         .channels = {
             [ADMW1001_CH_ID_DIG_I2C_0] = {