RTU20170907_138@201709260500.rar
(763.73 KB)
项目用了UCOSII,sprintf用在main.c里,App_TaskGPRS|任务
static void App_TaskGPRS (void *p_arg)
{
p_arg = p_arg;
Water_Flow_Now=123.45;
sprintf(ASCII_Buffer,"%s",Water_Flow_Now);
while(1)
{
// ÇåÈí¼þ¼ÆÊýÆ÷ ////////////////////
OSTmr_Count_Start(&s_SWG.gprsCounter);
OSTimeDly(50);
}
}
|