]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/net/Deluge/extra/NetProgM.nc
Properly save the TOS_NODE_ID before rebooting. The bug was reported by Weiping Song.
[tinyos-2.x.git] / 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));