Skip to content

Commit 6013572

Browse files
Ray148289junjiec
authored andcommitted
delete unused print & fix iar compile problem & adjust guiapp sensor read interval
1 parent e7941fe commit 6013572

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

device/sal/sal_sockets.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2137,7 +2137,7 @@ int sal_fcntl(int s, int cmd, int val)
21372137

21382138
int sal_shutdown(int s, int how)
21392139
{
2140-
SAL_ERROR("%s call stub for now\n", __func__);
2140+
SAL_DEBUG("%s call stub for now\n", __func__);
21412141
return 0;
21422142
}
21432143

device/sensor/sensor.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ $(NAME)_SOURCES += \
1414
drv/drv_als_ps_liteon_ltr553.c \
1515
drv/drv_temp_humi_sensirion_shtc1.c
1616

17-
$(NAME)_CFLAGS += -Wall -Werror
1817

1918
GLOBAL_INCLUDES += .
2019
GLOBAL_DEFINES += AOS_SENSOR

example/starterkitgui/app/GUIDEMO_Uncalssified.c

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,14 +249,14 @@ static void _Show_Sensor_Graph(GRAPH_Handle hGraph, GRAPH_DATA_Handle hData[])
249249
//
250250
// Add values depending on time
251251
//
252-
int TimeStart, TimeDiff, TimeStep;
253-
int NextState, Flag;
252+
// int TimeStart, TimeDiff, TimeStep;
253+
// int NextState, Flag;
254254

255-
TimeStart = GUIDEMO_GetTime();
256-
Flag = 1;
255+
// TimeStart = GUIDEMO_GetTime();
256+
int Flag = 1;
257257
do {
258258
get_acc_data(&x,&y,&z);
259-
TimeDiff = GUIDEMO_GetTime() - TimeStart;
259+
// TimeDiff = GUIDEMO_GetTime() - TimeStart;
260260
GRAPH_DATA_YT_AddValue(hData[0], ((I16)x >> 5) + 78);
261261
GRAPH_DATA_YT_AddValue(hData[1], ((I16)y >> 5) + 78);
262262
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[])
268268
GRAPH_DetachScale(hGraph, _hScaleV_sensor);
269269
WM_ValidateWindow(hGraph);
270270
}
271+
/*
271272
NextState = GUIDEMO_CheckCancel();
272273
TimeStep = GUIDEMO_GetTime() - TimeStart;
273274
if ((TimeStep - TimeDiff) < TIME_STEP) {
274275
GUI_Delay(TIME_STEP - (TimeStep - TimeDiff));
275-
}
276+
}*/
277+
GUI_Delay(200);
276278
} while (1);
277279
}
278280

0 commit comments

Comments
 (0)