Browse Source

replace magic code in Lan.cpp

Signed-off-by: surenyi <surenyi@gmail.com>
master
surenyi 9 years ago
parent
commit
e65fd5f2e0
  1. 6
      Lan.cpp

6
Lan.cpp

@ -178,13 +178,13 @@ int Lan::onResponse(int resp_type, struct MsgCmd *hdr, int status)
switch (resp_type) {
case RESP_PTT_ON:
if (status == RESP_PTT_OK) {
pkt.msgCmd = htons(0x0006);
pkt.msgCmd = htons(MSG_RES_PTTON);
} else {
pkt.msgCmd = htons(0x0005);
pkt.msgCmd = htons(MSG_REFUSE_PTTON);
}
break;
case RESP_PTT_OFF:
pkt.msgCmd = htons(0x000A);
pkt.msgCmd = htons(MSG_RES_PTTOFF);
break;
}
pkt.seqNum = htonl(++_myseq);

Loading…
Cancel
Save