} FlashParam;
static FlashParam flashParamRef;
-static const char trbflash_version[] = "$Revision: 2.42 $";
+static const char trbflash_version[] = "$Revision: 2.43 $";
static uint32_t mdcFlashSelect = 1;
endPoint = 0;
temp = trbBuffer;
end = trbBuffer + status;
- while (temp < trbBuffer + status) {
+ while (temp < end) {
unsigned int len = (*temp >> 16) & 0xffff;
unsigned int address = *temp & 0xffff;
unsigned int c;