Skip to content

Commit 8e07511

Browse files
author
Juha Heiskanen
committed
Use FAN version constant instead of pure number
1 parent a5566b2 commit 8e07511

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/6LoWPAN/ws/ws_ie_lib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ uint8_t *ws_wp_nested_pan_info_write(uint8_t *ptr, struct ws_pan_information_s *
508508
temp8 |= (pan_congiguration->use_parent_bs << 0);
509509
temp8 |= (pan_congiguration->rpl_routing_method << 1);
510510
/* FAN 1.1 specific write */
511-
if (pan_congiguration->version > 1) {
511+
if (pan_congiguration->version > WS_FAN_VERSION_1_0) {
512512
temp8 |= (pan_congiguration->lfn_window_style << 2);
513513
}
514514
temp8 |= pan_congiguration->version << 5;
@@ -1104,7 +1104,7 @@ bool ws_wp_nested_pan_read(uint8_t *data, uint16_t length, struct ws_pan_informa
11041104
pan_congiguration->use_parent_bs = (nested_payload_ie.content_ptr[4] & 0x01) == 0x01;
11051105
pan_congiguration->rpl_routing_method = (nested_payload_ie.content_ptr[4] & 0x02) == 0x02;
11061106
pan_congiguration->version = (nested_payload_ie.content_ptr[4] & 0xe0) >> 5;
1107-
if (pan_congiguration->version > 1) {
1107+
if (pan_congiguration->version > WS_FAN_VERSION_1_0) {
11081108
/* FAN 1.1 specific read */
11091109
pan_congiguration->lfn_window_style = (nested_payload_ie.content_ptr[4] & 0x04) == 0x04;
11101110
} else {

0 commit comments

Comments
 (0)