]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
One more small change for Deluge T2 to allow it to properly deal with images bigger...
authorrazvanm <razvanm>
Tue, 28 Apr 2009 22:54:17 +0000 (22:54 +0000)
committerrazvanm <razvanm>
Tue, 28 Apr 2009 22:54:17 +0000 (22:54 +0000)
tos/lib/net/Deluge/Deluge.h
tos/lib/net/Deluge/DelugeP.nc

index 26eeadb70ac7918498b7dc9d1fffebbc3284eedd..ec1952010c6bf66cd7a164e54c4a9086ada70a62 100644 (file)
@@ -65,7 +65,7 @@ typedef nx_struct DelugeCmd {
   nx_uint8_t type;
   nx_uint32_t uidhash;  // unique id of image
   nx_uint8_t  imgNum;   // image number
-  nx_uint16_t size;     // size of the image
+  nx_uint32_t size;     // size of the image
 } DelugeCmd;
 
 typedef struct BootArgs {
index f2df208fe73cafde10b1cdfe5ae0850454d66864..e5dc2efa62722082bf6d277096b649c26e086ec8 100644 (file)
@@ -153,7 +153,7 @@ implementation
 
   event void DelugeMetadata.readDone(uint8_t imgNum, DelugeIdent* ident, error_t error)
   {
-//    printf("readDone 0x%lx imgNum: %d size: %u\n", lastCmd.uidhash, lastCmd.imgNum, lastCmd.size);
+//    printf("readDone 0x%lx imgNum: %d size: %lu\n", lastCmd.uidhash, lastCmd.imgNum, lastCmd.size);
     if (ident->uidhash == lastCmd.uidhash) {
       if (lastCmd.type == DELUGE_CMD_DISSEMINATE_AND_REPROGRAM) {
        call NetProg.programImageAndReboot(call StorageMap.getPhysicalAddress[imgNum](0));