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.
Diff: main.cpp
- Revision:
- 17:2f0028880874
- Parent:
- 16:327cea5a86e9
- Child:
- 18:cbf514cce921
--- a/main.cpp	Fri Jul 26 11:30:25 2019 +0000
+++ b/main.cpp	Wed Aug 07 06:46:25 2019 +0000
@@ -92,8 +92,9 @@
 extern ADMW_CONFIG multichannel_multicycle_config;
 extern ADMW_CONFIG multichannel_singlecycle_config;
 extern ADMW_CONFIG sensor2_bridge_4w_load_cell_config;
+extern ADMW_CONFIG config;
 /* Change the following pointer to select any of the configurations above */
-static ADMW_CONFIG *pSelectedConfig = &sensor2_bridge_4w_load_cell_config;
+static ADMW_CONFIG *pSelectedConfig = &config;
 
 static ADMW_CONNECTION connectionInfo = PLATFORM_CONNECTION_INFO;
 
@@ -105,7 +106,7 @@
     ADMW_DEVICE_HANDLE hDevice;
     ADMW_MEASUREMENT_MODE eMeasurementMode = ADMW_MEASUREMENT_MODE_NORMAL;
     bool bDeviceReady;
-
+    
     /*
      * Open an ADI Sense device instance.
      */
@@ -139,7 +140,6 @@
         }
     } while (! bDeviceReady);
     ADMW_LOG_INFO("ADI Sense device ready");
-
     /*
      * Write configuration settings to the device registers.
      * Settings are not applied until admw_ApplyConfigUpdates() is called.