From ed5c09b9b7f07d0f531a32852bf3e6bd48588046 Mon Sep 17 00:00:00 2001 From: razvanm Date: Mon, 24 Dec 2007 06:45:23 +0000 Subject: [PATCH] The previous CRC is was ignored when dealing with computeCrc request that span multiple pages. --- tos/chips/at45db/At45dbP.nc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.39.2