mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
nanocoap_sock: use coap_get_code_raw()
This commit is contained in:
parent
54362e2c2a
commit
a5cc48ad45
@ -294,7 +294,7 @@ ssize_t nanocoap_sock_request_cb(nanocoap_sock_t *sock, coap_pkt_t *pkt,
|
||||
_send_ack(sock, pkt);
|
||||
/* fall-through */
|
||||
case COAP_TYPE_ACK:
|
||||
if (cb && coap_get_code(pkt) == COAP_CODE_EMPTY) {
|
||||
if (cb && coap_get_code_raw(pkt) == COAP_CODE_EMPTY) {
|
||||
/* empty ACK, wait for separate response */
|
||||
state = STATE_RESPONSE_RCVD;
|
||||
deadline = _deadline_from_interval(CONFIG_COAP_SEPARATE_RESPONSE_TIMEOUT_MS
|
||||
|
Loading…
Reference in New Issue
Block a user