Skip to content

Commit

Permalink
nanocoap_sock: use coap_get_code_raw()
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Nov 28, 2023
1 parent b8ec36a commit e2e5e03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/net/application_layer/nanocoap/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ ssize_t nanocoap_sock_request_cb(nanocoap_sock_t *sock, coap_pkt_t *pkt,
}

state = STATE_RESPONSE_OK;
DEBUG("nanocoap: response code=%i\n", coap_get_code(pkt));
DEBUG("nanocoap: response code=%i\n", coap_get_code_decimal(pkt));
switch (coap_get_type(pkt)) {
case COAP_TYPE_RST:
/* TODO: handle different? */
Expand Down

0 comments on commit e2e5e03

Please sign in to comment.