src/states.c
changeset 195 1510dd61ead0
parent 183 4cddad17c81f
child 204 44ce74232ccb
equal deleted inserted replaced
194:90d740ff7c21 195:1510dd61ead0
    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