X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=tos%2Flib%2Fnet%2Ftymo%2Fdymo%2FDymoTableM.nc;h=7467d3c793c0ede5cd2e2aca7ef480b63631d2b8;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hp=d0e00dd8610b62fadc26219c5dbbde01d7c39c28;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400;p=tinyos-2.x.git diff --git a/tos/lib/net/tymo/dymo/DymoTableM.nc b/tos/lib/net/tymo/dymo/DymoTableM.nc index d0e00dd8..7467d3c7 100644 --- a/tos/lib/net/tymo/dymo/DymoTableM.nc +++ b/tos/lib/net/tymo/dymo/DymoTableM.nc @@ -252,6 +252,13 @@ implementation { } } + event void LinkMonitor.refreshedLink(addr_t neighbor) { + int8_t i = get_route(neighbor); + if (i != -1) { + replace_info(i, &table[i].info); + } + } + void replace_info(uint8_t pos, const rt_info_t * route_info){ table[pos].info = *route_info; table[pos].flags = FLAG_NEW;