equal
deleted
inserted
replaced
73 } |
73 } |
74 } |
74 } |
75 |
75 |
76 #define StartOrStop(CommType, FuncStart, FuncStop) \ |
76 #define StartOrStop(CommType, FuncStart, FuncStop) \ |
77 if(newCommunicationState->CommType && !d->CurrentCommunicationState.CommType){\ |
77 if(newCommunicationState->CommType && !d->CurrentCommunicationState.CommType){\ |
78 MSG_ERR(0x9999,#FuncStart, 9999);\ |
78 MSG_WAR(0x9999,#FuncStart, 9999);\ |
79 d->CurrentCommunicationState.CommType = 1;\ |
79 d->CurrentCommunicationState.CommType = 1;\ |
80 FuncStart;\ |
80 FuncStart;\ |
81 }else if(!newCommunicationState->CommType && d->CurrentCommunicationState.CommType){\ |
81 }else if(!newCommunicationState->CommType && d->CurrentCommunicationState.CommType){\ |
82 MSG_ERR(0x9999,#FuncStop, 9999);\ |
82 MSG_WAR(0x9999,#FuncStop, 9999);\ |
83 d->CurrentCommunicationState.CommType = 0;\ |
83 d->CurrentCommunicationState.CommType = 0;\ |
84 FuncStop;\ |
84 FuncStop;\ |
85 } |
85 } |
86 #define None |
86 #define None |
87 |
87 |