mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-21 19:29:18 +00:00
Limited observe clock to 24 bits.
This commit is contained in:
parent
56f877b633
commit
3048126ff1
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user