From: razvanm Date: Mon, 24 Dec 2007 06:45:23 +0000 (+0000) Subject: The previous CRC is was ignored when dealing with computeCrc request that span multip... X-Git-Tag: release_tinyos_2_1_0_0~613 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=ed5c09b9b7f07d0f531a32852bf3e6bd48588046 The previous CRC is was ignored when dealing with computeCrc request that span multiple pages. --- diff --git a/tos/chips/at45db/At45dbP.nc b/tos/chips/at45db/At45dbP.nc index 213573f2..ebc6b81c 100644 --- a/tos/chips/at45db/At45dbP.nc +++ b/tos/chips/at45db/At45dbP.nc @@ -399,7 +399,7 @@ implementation uint16_t baseCrc) { /* This is a hack (store crc in reqBuf), but it saves 2 bytes of RAM */ reqBuf = (uint8_t *)baseCrc; - newRequest(R_READCRC, page, offset, NULL, n); + newRequest(R_READCRC, page, offset, reqBuf, n); } command void At45db.write(at45page_t page, at45pageoffset_t offset,