From 6013572f5631de82a09322e44a639ea8aa0d0436 Mon Sep 17 00:00:00 2001 From: yuanlu Date: Sun, 25 Mar 2018 16:31:22 +0800 Subject: [PATCH] delete unused print & fix iar compile problem & adjust guiapp sensor read interval --- device/sal/sal_sockets.c | 2 +- device/sensor/sensor.mk | 1 - example/starterkitgui/app/GUIDEMO_Uncalssified.c | 14 ++++++++------ 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/device/sal/sal_sockets.c b/device/sal/sal_sockets.c index b6f35e0323..0c31dd439c 100644 --- a/device/sal/sal_sockets.c +++ b/device/sal/sal_sockets.c @@ -2137,7 +2137,7 @@ int sal_fcntl(int s, int cmd, int val) int sal_shutdown(int s, int how) { - SAL_ERROR("%s call stub for now\n", __func__); + SAL_DEBUG("%s call stub for now\n", __func__); return 0; } diff --git a/device/sensor/sensor.mk b/device/sensor/sensor.mk index e050d75b4d..cf86832864 100644 --- a/device/sensor/sensor.mk +++ b/device/sensor/sensor.mk @@ -14,7 +14,6 @@ $(NAME)_SOURCES += \ drv/drv_als_ps_liteon_ltr553.c \ drv/drv_temp_humi_sensirion_shtc1.c -$(NAME)_CFLAGS += -Wall -Werror GLOBAL_INCLUDES += . GLOBAL_DEFINES += AOS_SENSOR diff --git a/example/starterkitgui/app/GUIDEMO_Uncalssified.c b/example/starterkitgui/app/GUIDEMO_Uncalssified.c index f8e64d1adb..8e2d180ebc 100755 --- a/example/starterkitgui/app/GUIDEMO_Uncalssified.c +++ b/example/starterkitgui/app/GUIDEMO_Uncalssified.c @@ -249,14 +249,14 @@ static void _Show_Sensor_Graph(GRAPH_Handle hGraph, GRAPH_DATA_Handle hData[]) // // Add values depending on time // - int TimeStart, TimeDiff, TimeStep; - int NextState, Flag; + // int TimeStart, TimeDiff, TimeStep; + // int NextState, Flag; - TimeStart = GUIDEMO_GetTime(); - Flag = 1; + // TimeStart = GUIDEMO_GetTime(); + int Flag = 1; do { get_acc_data(&x,&y,&z); - TimeDiff = GUIDEMO_GetTime() - TimeStart; + // TimeDiff = GUIDEMO_GetTime() - TimeStart; GRAPH_DATA_YT_AddValue(hData[0], ((I16)x >> 5) + 78); GRAPH_DATA_YT_AddValue(hData[1], ((I16)y >> 5) + 78); GRAPH_DATA_YT_AddValue(hData[2], ((I16)z >> 5) + 78); @@ -268,11 +268,13 @@ static void _Show_Sensor_Graph(GRAPH_Handle hGraph, GRAPH_DATA_Handle hData[]) GRAPH_DetachScale(hGraph, _hScaleV_sensor); WM_ValidateWindow(hGraph); } + /* NextState = GUIDEMO_CheckCancel(); TimeStep = GUIDEMO_GetTime() - TimeStart; if ((TimeStep - TimeDiff) < TIME_STEP) { GUI_Delay(TIME_STEP - (TimeStep - TimeDiff)); - } + }*/ + GUI_Delay(200); } while (1); }