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

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_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); SET_OPTION(coap_pkt, COAP_OPTION_OBSERVE);
return 1; return 1;
} }