Limited observe clock to 24 bits.

This commit is contained in:
Matthias Kovatsch 2013-06-19 14:45:57 +02:00
parent 56f877b633
commit 3048126ff1
1 changed files with 1 additions and 1 deletions

View File

@ -1013,7 +1013,7 @@ coap_set_header_observe(void *packet, uint32_t observe)
{
coap_packet_t *const coap_pkt = (coap_packet_t *) packet;
coap_pkt->observe = observe;
coap_pkt->observe = 0x00FFFFFF & observe;
SET_OPTION(coap_pkt, COAP_OPTION_OBSERVE);
return 1;
}