1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #16399 from kfessel/f-nanocoap-caseblock

examples/nanocoap_server: remove unneed case block
This commit is contained in:
benpicco 2021-04-28 14:40:05 +02:00 committed by GitHub
commit d806aa42c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,6 @@ static ssize_t _riot_value_handler(coap_pkt_t *pkt, uint8_t *buf, size_t len, vo
break;
case COAP_PUT:
case COAP_POST:
{
if (pkt->payload_len < 16) {
/* convert the payload to an integer and update the internal value */
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;
}
}
}
return coap_reply_simple(pkt, code, buf, len,
COAP_FORMAT_TEXT, (uint8_t*)rsp, p);