X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Flib%2Fnet%2FDeluge%2FObjectTransferP.nc;h=88878217f8e78b8e53f2af6bc7e0475083e86a78;hb=7538b51c5737223b679143838726911829823006;hp=8c6b499625c900260150a483b29cb3a44835816b;hpb=adf61e8eec900c43698cf53806bdd954f2d65538;p=tinyos-2.x.git diff --git a/tos/lib/net/Deluge/ObjectTransferP.nc b/tos/lib/net/Deluge/ObjectTransferP.nc index 8c6b4996..88878217 100644 --- a/tos/lib/net/Deluge/ObjectTransferP.nc +++ b/tos/lib/net/Deluge/ObjectTransferP.nc @@ -170,7 +170,7 @@ implementation state = S_INITIALIZING_PUB; curObjDesc.objid = new_objid; - curObjDesc.numPgs = ((new_size - 1) / DELUGE_BYTES_PER_PAGE) + 1; // Number of pages to transmit + curObjDesc.numPgs = ((new_size - 1) / DELUGET2_BYTES_PER_PAGE) + 1; // Number of pages to transmit curObjDesc.numPgsComplete = curObjDesc.numPgs; // Publisher doesn't really care about this curObjDesc.crc = call Crc.crc16(&curObjDesc, sizeof(object_id_t) + sizeof(page_num_t)); @@ -191,7 +191,7 @@ implementation void cont_receive() { state = S_INITIALIZING_RECV; curObjDesc.objid = cont_receive_new_objid; - curObjDesc.numPgs = ((cont_receive_new_size - 1) / DELUGE_BYTES_PER_PAGE) + 1; // Number of pages to receive + curObjDesc.numPgs = ((cont_receive_new_size - 1) / DELUGET2_BYTES_PER_PAGE) + 1; // Number of pages to receive curObjDesc.numPgsComplete = 0; curObjDesc.crc = call Crc.crc16(&curObjDesc, sizeof(object_id_t) + sizeof(page_num_t));