]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/net/Deluge/BlockStorageManager/BlockStorageManagerP.nc
A fix to allow Deluge T2 to compile for micaz.
[tinyos-2.x.git] / tos / lib / net / Deluge / BlockStorageManager / BlockStorageManagerP.nc
index 7a7cefb7e62e9c587613cc45cb1b8ace210c31bb..c171a25c85fa1a4b04092d3cd522186320dfd730 100644 (file)
@@ -181,7 +181,7 @@ implementation
 #if defined(PLATFORM_TELOSB)
     p_addr = call SubStorageMap.getPhysicalAddress[volume_id](addr);
 #elif defined(PLATFORM_MICAZ)
-    at45page_t page = call At45dbVolume.remap[img_num]((addr >> AT45_PAGE_SIZE_LOG2));
+    at45page_t page = call At45dbVolume.remap[volume_id]((addr >> AT45_PAGE_SIZE_LOG2));
     at45pageoffset_t offset = addr & ((1 << AT45_PAGE_SIZE_LOG2) - 1);
     p_addr = page;
     p_addr = p_addr << AT45_PAGE_SIZE_LOG2;