Skip to content

Commit 130fec4

Browse files
author
Arto Kinnunen
authored
Fix GCC_ARM linker error with some Thread builds (ARMmbed#1742)
Add HAVE_WS in c-file to fix: "Error: L6218E: Undefined symbol DEVICE_MIN_SENS (referred from ws_neighbor_class.o)"
1 parent 65574a4 commit 130fec4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/6LoWPAN/ws/ws_neighbor_class.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
#include "6LoWPAN/ws/ws_config.h"
2626
#include "6LoWPAN/ws/ws_neighbor_class.h"
2727

28+
#ifdef HAVE_WS
29+
2830
#define RSL_UNITITIALIZED 0x7fff
2931
#define TRACE_GROUP "wsne"
3032

@@ -143,3 +145,5 @@ void ws_neighbor_class_rsl_out_calculate(ws_neighbor_class_entry_t *ws_neighbor,
143145
return;
144146
}
145147

148+
#endif /* HAVE_WS */
149+

0 commit comments

Comments
 (0)