MWARE-1930 fixed

Files at this revision

API Documentation at this revision

Comitter:
Vkadaba
Date:
Tue Dec 10 09:00:11 2019 +0000
Parent:
41:df78b7d7b675
Commit message:
Printing correct firmware version

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
rtd_4w_config.c Show annotated file Show diff for this revision Revisions of this file
src/admw_1001.c Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Dec 10 08:43:37 2019 +0000
+++ b/main.cpp	Tue Dec 10 09:00:11 2019 +0000
@@ -57,7 +57,7 @@
 extern ADMW_CONFIG multichannel_singlecycle_config;
 extern ADMW_CONFIG i2c0_sensirionSHT3X_config;
 /* Change the following pointer to select any of the configurations above */
-static ADMW_CONFIG *pSelectedConfig = &thermocouple_typeK_cjc0_config;
+static ADMW_CONFIG *pSelectedConfig = &rtd_4w_config;
 
 static ADMW_CONNECTION connectionInfo = PLATFORM_CONNECTION_INFO;
 
--- a/rtd_4w_config.c	Tue Dec 10 08:43:37 2019 +0000
+++ b/rtd_4w_config.c	Tue Dec 10 09:00:11 2019 +0000
@@ -51,7 +51,7 @@
         },
         .measurement = {
             .externalRefVoltage = 0.0,
-            .operatingMode = ADMW1001_OPERATING_MODE_CONTINUOUS,
+            .operatingMode = ADMW1001_OPERATING_MODE_SINGLECYCLE,
             .dataReadyMode = ADMW1001_DATAREADY_PER_CYCLE, // FIX: Temporarily all values from json are hardcoded to this one in the Contracts.FileGenerator - > file translations!!
             .cycleInterval = 0,
             .RSenseValue = 1000.0, 
--- a/src/admw_1001.c	Tue Dec 10 08:43:37 2019 +0000
+++ b/src/admw_1001.c	Tue Dec 10 09:00:11 2019 +0000
@@ -401,7 +401,7 @@
     } else {
         char buffer[ADMW_FORMATTED_VERSION_SIZE]; //00.00.0000  8 digits + 2 Bytes "." + one null character at the end
         strcat(nData, buffer);
-        ADMW_LOG_INFO("Firmware Version Id is %X.%X",nData[2],nData[0]);
+        ADMW_LOG_INFO("Firmware Version Id is %X.%X.%X",nData[3],nData[2],nData[0]);
     }
     return ADMW_SUCCESS;
 }