From: razvanm Date: Fri, 18 Jan 2008 18:37:10 +0000 (+0000) Subject: Properly save the TOS_NODE_ID before rebooting. The bug was reported by Weiping Song. X-Git-Tag: release_tinyos_2_1_0_0~591 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=58ade51c5d838097ffb691a7da6e72f1439cdf32 Properly save the TOS_NODE_ID before rebooting. The bug was reported by Weiping Song. --- diff --git a/tos/lib/net/Deluge/extra/NetProgM.nc b/tos/lib/net/Deluge/extra/NetProgM.nc index ad39d254..478bad26 100644 --- a/tos/lib/net/Deluge/extra/NetProgM.nc +++ b/tos/lib/net/Deluge/extra/NetProgM.nc @@ -90,6 +90,7 @@ implementation { bootArgs.imageAddr = imgAddr; bootArgs.gestureCount = 0xff; bootArgs.noReprogram = FALSE; + bootArgs.address = TOS_NODE_ID; call IFlash.write((uint8_t*)TOSBOOT_ARGS_ADDR, &bootArgs, sizeof(bootArgs));