Skip to content

Commit

Permalink
delete unused print & fix iar compile problem & adjust guiapp sensor …
Browse files Browse the repository at this point in the history
…read interval
  • Loading branch information
Ray148289 authored and junjiec committed Mar 26, 2018
1 parent e7941fe commit 6013572
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion device/sal/sal_sockets.c
Expand Up @@ -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;
}

Expand Down
1 change: 0 additions & 1 deletion device/sensor/sensor.mk
Expand Up @@ -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
Expand Down
14 changes: 8 additions & 6 deletions example/starterkitgui/app/GUIDEMO_Uncalssified.c
Expand Up @@ -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);
Expand All @@ -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);
}

Expand Down

0 comments on commit 6013572

Please sign in to comment.