|
|
@ -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); |
|
|
|