mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
examples/nanocoap_server: remove unneed case block
This commit is contained in:
parent
8a7f3ab6fa
commit
827572d771
@ -96,7 +96,6 @@ static ssize_t _riot_value_handler(coap_pkt_t *pkt, uint8_t *buf, size_t len, vo
|
|||||||
break;
|
break;
|
||||||
case COAP_PUT:
|
case COAP_PUT:
|
||||||
case COAP_POST:
|
case COAP_POST:
|
||||||
{
|
|
||||||
if (pkt->payload_len < 16) {
|
if (pkt->payload_len < 16) {
|
||||||
/* convert the payload to an integer and update the internal value */
|
/* convert the payload to an integer and update the internal value */
|
||||||
char payload[16] = { 0 };
|
char payload[16] = { 0 };
|
||||||
@ -108,7 +107,6 @@ static ssize_t _riot_value_handler(coap_pkt_t *pkt, uint8_t *buf, size_t len, vo
|
|||||||
code = COAP_CODE_REQUEST_ENTITY_TOO_LARGE;
|
code = COAP_CODE_REQUEST_ENTITY_TOO_LARGE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return coap_reply_simple(pkt, code, buf, len,
|
return coap_reply_simple(pkt, code, buf, len,
|
||||||
COAP_FORMAT_TEXT, (uint8_t*)rsp, p);
|
COAP_FORMAT_TEXT, (uint8_t*)rsp, p);
|
||||||
|
Loading…
Reference in New Issue
Block a user