|
楼主,请问枚举类型在product.c里面 case EVENT_location:
currentDataPoint.valuelocation = dataPointPtr->valuelocation;
GIZWITS_LOG("Evt: EVENT_location %d\n", currentDataPoint.valuelocation);
uart0_sendStr("####please please please location!!!!!!!: \r\n");
switch(currentDataPoint.valuelocation)
{
case location_VALUE0:
uart0_sendStr("####Choose beijing location: \r\n");
statu[0]=1;//user handle
currentDataPoint.valuelocation = 0;
break;
case location_VALUE1:
uart0_sendStr("####Choose xi'an location: \r\n");
statu[1]=1;//user handle
currentDataPoint.valuelocation = 1;
break;
为啥在手机上选择了第一个或者第二个,串口没打印,灯也没变化,程序测试串口和灯用着布尔型数据点没问题。求解 |
|