Правка таблицы разделов, а также обработчика ошибок инициализации HDLC

This commit is contained in:
forth32 2015-04-21 11:32:44 +03:00
parent 0e3ace2916
commit a4c331f150

View File

@ -23,7 +23,7 @@ struct {
int code;
} pcodes[]={
{"M3Boot",0x20000},
{"M3Boot",0x10000},
{"M3Boot-ptable",0x10000},
{"M3Boot_R11",0x200000},
{"Ptable",0x10000},
{"Fastboot",0x110000},
@ -321,13 +321,8 @@ if (res != 6) {
return;
}
i++;
if (memcmp(replybuf,NAKrsp,6) == 0) goto rehdlc;
if (memcmp(replybuf,OKrsp,6) != 0) {
printf("\n Неправильный ответ на DATAMODE\n");
dump(replybuf,res,0);
return;
}
//if (memcmp(replybuf,NAKrsp,6) == 0) goto rehdlc;
if (memcmp(replybuf,OKrsp,6) != 0) goto rehdlc;
iolen=send_cmd(cmdver,1,replybuf);
if ((iolen == 0)||(replybuf[1] != 0x0d)) goto rehdlc;