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:
- 52:83c02d9a7713
- Parent:
- 51:d84305e5e1c0
diff -r d84305e5e1c0 -r 83c02d9a7713 common/utils.c --- a/common/utils.c Mon Feb 17 11:23:39 2020 +0000 +++ b/common/utils.c Tue Feb 18 08:16:03 2020 +0000 @@ -134,13 +134,13 @@ { for (uint32_t i = 0; i < nNumSamples; i++) { - ADMW_LOG_INFO("Sample # %2d Channel # %2d :: Raw %X %f :: Processed %f :: flags:%s%s", + ADMW_LOG_INFO("Sample # %2d Channel # %2d :: Raw %f :: Processed %f :: flags:ERROR:%X,ALERT:%X", i+1, pSampleBuffer[i].channelId, - pSampleBuffer[i].rawValue, (pSampleBuffer[i].rawValue/1024.0), + pSampleBuffer[i].rawValue, pSampleBuffer[i].processedValue, - pSampleBuffer[i].status & ADMW_DEVICE_STATUS_ERROR ? " ERROR" : "", - pSampleBuffer[i].status & ADMW_DEVICE_STATUS_ALERT ? " ALERT" : ""); + pSampleBuffer[i].status & ADMW_DEVICE_STATUS_ERROR, + pSampleBuffer[i].status & ADMW_DEVICE_STATUS_ALERT); } }