From 4ecbff0845e62d30041bc3bb09b1168d78e70f05 Mon Sep 17 00:00:00 2001 From: David Lin Date: Fri, 21 Feb 2020 13:13:29 +0800 Subject: [PATCH] Improve readability of code more readable. --- .../data_template_sample.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/qcloud_iot_explorer_sdk_data_template/data_template_sample.c b/examples/qcloud_iot_explorer_sdk_data_template/data_template_sample.c index b3f56045..45ec4344 100644 --- a/examples/qcloud_iot_explorer_sdk_data_template/data_template_sample.c +++ b/examples/qcloud_iot_explorer_sdk_data_template/data_template_sample.c @@ -53,9 +53,9 @@ static void update_events_timestamp(sEvent *pEvents, int count) return; } #ifdef EVENT_TIMESTAMP_USED - pEvents[i].timestamp = time(NULL); //should be UTC and accurate + pEvents[i].timestamp = time(NULL); //should be UTC and accurate #else - pEvents[i].timestamp = 0; + pEvents[i].timestamp = 0; #endif } } @@ -373,8 +373,7 @@ void first_time_report_construct(DeviceProperty *pReportDataList[], int *pCount) for (i = 0, j = 0; i < TOTAL_PROPERTY_COUNT; i++) { pReportDataList[j++] = &(sg_DataTemplate[i].data_property); - } - + } *pCount = j; } /////////////////////////////////////////////////////////////////////////////////////