]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Properly save the TOS_NODE_ID before rebooting. The bug was reported by Weiping Song.
authorrazvanm <razvanm>
Fri, 18 Jan 2008 18:37:10 +0000 (18:37 +0000)
committerrazvanm <razvanm>
Fri, 18 Jan 2008 18:37:10 +0000 (18:37 +0000)
tos/lib/net/Deluge/extra/NetProgM.nc

index ad39d2542e0d6eb61aa8472e8f2ef4b76a21b5ff..478bad262cde8339f8da0ba8e4d749db98265993 100644 (file)
@@ -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));