[Tinyos-devel] TOSBoot last page crc check

Maxime Muller - s h o c k f i s h / maxime at shockfish.com
Mon May 14 00:06:35 PDT 2007


Morning all,

In TOSBootM.nc
http://tinyos.cvs.sourceforge.net/tinyos/tinyos-1.x/tos/lib/Deluge/TOSBoot/TOSBootM.nc?revision=1.4&view=markup
the function verifyImage should return
(i == numPgs)&&(crcTarget == crcTmp)

as with this loop "for ( i = 0; i < numPgs && crcTarget == crcTmp; i++ )"
and returning only (i == numPgs) we wont know if the last page is correct.

Regards,
maxime



More information about the Tinyos-devel mailing list