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: common/utils.c
- Revision:
- 2:e391aa125721
- Parent:
- 1:63dd03580de4
- Child:
- 5:0728bde67bdb
--- a/common/utils.c	Mon Apr 15 14:36:02 2019 +0000
+++ b/common/utils.c	Fri Apr 26 15:57:57 2019 +0000
@@ -133,10 +133,10 @@
         }
         else
         {
-            ADI_SENSE_LOG_INFO("Sample # %2d Channel # %2d :: Raw %8d  :: Processed %f :: flags:%s%s",
+            ADI_SENSE_LOG_INFO("Sample # %2d Channel # %2d :: Raw %0X %f :: Processed %f :: flags:%s%s",
                                i+1,
                                pSampleBuffer[i].channelId,
-                               pSampleBuffer[i].rawValue,
+                               pSampleBuffer[i].rawValue, (pSampleBuffer[i].rawValue/1024.0),
                                pSampleBuffer[i].processedValue,
                                pSampleBuffer[i].status & ADI_SENSE_DEVICE_STATUS_ERROR ? " ERROR" : "",
                                pSampleBuffer[i].status & ADI_SENSE_DEVICE_STATUS_ALERT ? " ALERT" : "");