Vybhav Kadaba
/
EV-PRO-MW1001_Development_20April
Code clean up and handling FIFO errors
Diff: common/utils.c
- Revision:
- 65:d91e1d63153d
- Parent:
- 63:2655a04c00f5
- Child:
- 67:d36977cbfe90
--- a/common/utils.c Tue Apr 14 07:04:24 2020 +0000 +++ b/common/utils.c Tue Apr 14 08:40:24 2020 +0000 @@ -62,17 +62,6 @@ ADMW_LOG_INFO("\tActive FIFO Errors - ATTENTION REQUIRED"); if (pStatus->deviceStatus & ADMW_DEVICE_STATUS_CONFIG_ERROR) ADMW_LOG_INFO("\tActive Configuration Errors - ATTENTION REQUIRED"); - if (pStatus->deviceStatus & ADMW_DEVICE_STATUS_LUT_ERROR) - ADMW_LOG_INFO("\tActive Look-Up Table Errors - ATTENTION REQUIRED"); - - - if (pStatus->deviceStatus & ADMW_DEVICE_STATUS_ERROR) { - ADMW_LOG_INFO("\tActive Errors - ATTENTION REQUIRED"); - ADMW_LOG_INFO("\t\tLast Error Code: %u (0x%X)", - pStatus->errorCode, pStatus->errorCode); - - - } if (pStatus->deviceStatus & ADMW_DEVICE_STATUS_ALERT) { ADMW_LOG_INFO("\tActive Alerts - ATTENTION REQUIRED:"); @@ -119,13 +108,13 @@ ADMW_MEASUREMENT_MODE eMeasurementMode) { for (uint32_t i = 0; i < nNumSamples; i++) { - ADMW_LOG_INFO("Sample # %2d Channel # %2d :: Raw %f :: Processed %f :: flags: ERROR:%X , ALERT:%X", + ADMW_LOG_INFO("Sample # %2d Channel_ID # %2d :: Raw_Sample %f :: processedValue %f :: flags: ERROR:%X , ALERT:%X", i+1, - pSampleBuffer[i].channelId, - pSampleBuffer[i].rawValue, + pSampleBuffer[i].Channel_ID, + pSampleBuffer[i].Raw_Sample, pSampleBuffer[i].processedValue, - pSampleBuffer[i].status & ADMW_DEVICE_STATUS_ERROR, - pSampleBuffer[i].status & ADMW_DEVICE_STATUS_ALERT ); + pSampleBuffer[i].Ch_Error, + pSampleBuffer[i].Ch_Alert); } }