Code clean up and handling FIFO errors

Revision:
64:e8670e971e22
Parent:
63:2655a04c00f5
Child:
67:d36977cbfe90
--- a/thermocouple_typeK_cjc0_config.c	Tue Apr 14 06:43:47 2020 +0000
+++ b/thermocouple_typeK_cjc0_config.c	Tue Apr 14 07:04:24 2020 +0000
@@ -88,7 +88,7 @@
                     .filter = {
                         .type = ADMW1001_ADC_FILTER_SINC3,
                         .sf = ADMW1001_SF_8P24HZ,
-                        .chopMode = ADMW1001_CHOP_MD_ON,
+                        .chopMode = 2,
                         .notch1p2 = true
                     },
                     .reference = ADMW1001_ADC_REFERENCE_VOLTAGE_INTERNAL,
@@ -113,7 +113,7 @@
                     .filter = {
                         .type = ADMW1001_ADC_FILTER_SINC3,
                         .sf = ADMW1001_SF_8P24HZ,
-                        .chopMode = ADMW1001_CHOP_MD_ON,
+                        .chopMode = 2,
                         .notch1p2 = true
                     },
                     .reference = ADMW1001_ADC_REFERENCE_VOLTAGE_INTERNAL,