]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/net/Deluge/FlashVolumeManager/FlashVolumeManagerP.nc
Improve Deluge to report the UID of the running application. tos-deluge script from...
[tinyos-2.x.git] / tos / lib / net / Deluge / FlashVolumeManager / FlashVolumeManagerP.nc
index bf29d2b3bc273eaede1bf54402c11d6dbb922526..c728b11faf15da81030cff2baa12a35b02f2aabe 100644 (file)
@@ -223,6 +223,12 @@ implementation
           signal ReprogNotify.notify(img_num);
           sendReply(SUCCESS, sizeof(SerialReplyPacket));
           break;
+        case SERIALMSG_IDENT:
+         // This is not send using nx_uint32 in order to maintain
+         // consistency with data from the Deluge image.
+          *(uint32_t*)(&serialMsg_payload->data) = IDENT_UID_HASH;
+         sendReply(SUCCESS, sizeof(SerialReplyPacket) + 4);
+         break;
   #endif
       }
     } else {