diff -r 43c3b2bf3e32 -r 6165554cbfe9 src/states.c --- a/src/states.c Sun Sep 30 22:34:10 2007 +0200 +++ b/src/states.c Sun Sep 30 22:35:48 2007 +0200 @@ -106,11 +106,11 @@ } #define StartOrStop(CommType, FuncStart, FuncStop) \ - if(newCommunicationState->CommType && !d->CurrentCommunicationState.CommType){\ + if(newCommunicationState->CommType && d->CurrentCommunicationState.CommType == 0){\ MSG_WAR(0x9999,#FuncStart, 9999);\ d->CurrentCommunicationState.CommType = 1;\ FuncStart;\ - }else if(!newCommunicationState->CommType && d->CurrentCommunicationState.CommType){\ + }else if(!newCommunicationState->CommType && d->CurrentCommunicationState.CommType == 1){\ MSG_WAR(0x9999,#FuncStop, 9999);\ d->CurrentCommunicationState.CommType = 0;\ FuncStop;\