mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-08-26 10:28:58 +00:00
Bugfix: address of first argument to collect_neighbor_list_best()
This commit is contained in:
parent
754b3113c2
commit
3bca8cfe3d
@ -28,7 +28,7 @@
|
||||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: sky-shell.c,v 1.21 2010/09/13 14:33:20 adamdunkels Exp $
|
||||
* $Id: sky-shell.c,v 1.22 2010/09/13 14:34:51 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -221,7 +221,7 @@ PROCESS_THREAD(shell_sky_alldata_process, ev, data)
|
||||
rimeaddr_copy(&msg.best_neighbor, &rimeaddr_null);
|
||||
msg.best_neighbor_etx =
|
||||
msg.best_neighbor_rtmetric = 0;
|
||||
n = collect_neighbor_list_best(shell_collect_conn.neighbor_list);
|
||||
n = collect_neighbor_list_best(&shell_collect_conn.neighbor_list);
|
||||
if(n != NULL) {
|
||||
rimeaddr_copy(&msg.best_neighbor, &n->addr);
|
||||
msg.best_neighbor_etx = collect_neighbor_rtmetric(n) - n->rtmetric;
|
||||
|
Loading…
Reference in New Issue
Block a user