Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 42:c9c5a22e539e, committed 2019-12-10
- Comitter:
- Vkadaba
- Date:
- Tue Dec 10 09:00:11 2019 +0000
- Parent:
- 41:df78b7d7b675
- Commit message:
- Printing correct firmware version
Changed in this revision
--- 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; }