Bug Report – 20191026

      No Comments on Bug Report – 20191026

Hello all

The new version of 1.1.28 is not totally to match to middleware of TEPMWConponent, so Here I write this bug and tell everyone. This software source declared problem to notificate user to recovery.

Date:  20191026

File Project:  TEPMWComponent

FileName:  EPMWComponent.cpp

Problem Description:   FUNCs mismatch the line status.

[Code Original]

case 0x6A:
{
byte i,infolen;

if( (pld->LgInfoPos + StartAddr*128 + infolen)  > (FBufferSize + 100) ) {
*pSend = 0x82; pSend++; SendLen++;
} else {
*pSend = 0x80; pSend++; SendLen++;
}
*pSend = (StartAddr & 0xFF00) >> 8;    pSend++; SendLen++;
*pSend = StartAddr;                                pSend++; SendLen++;

infolen = *Code;  Code++;

for(i=0;i<infolen;i++) {
eeprom_write_byte(pld->LgInfoPos + StartAddr*128 + i , *Code );  Code++;  // MaxLogic
}}
break;

[Code Recovery]

case 0x6A:
{
byte i,infolen;

if( (pld->LgInfoPos + StartAddr*138 + infolen)  > (FBufferSize + 100) ) {
*pSend = 0x82; pSend++; SendLen++;
} else {
*pSend = 0x80; pSend++; SendLen++;
}
*pSend = (StartAddr & 0xFF00) >> 8;    pSend++; SendLen++;
*pSend = StartAddr;                                pSend++; SendLen++;

infolen = *Code;  Code++;

for(i=0;i<infolen;i++) {
eeprom_write_byte(pld->LgInfoPos + StartAddr*138 + i , *Code );  Code++;  // MaxLogic
}}
break;

 

[Notification]

   Please in Downloader use FrameCount 10. to match device’s middleware.

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *