From a4c331f15070ff11eaaa45eb0b80e8d2583eefcc Mon Sep 17 00:00:00 2001 From: forth32 Date: Tue, 21 Apr 2015 11:32:44 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B0=20=D1=82?= =?UTF-8?q?=D0=B0=D0=B1=D0=BB=D0=B8=D1=86=D1=8B=20=D1=80=D0=B0=D0=B7=D0=B4?= =?UTF-8?q?=D0=B5=D0=BB=D0=BE=D0=B2,=20=D0=B0=20=D1=82=D0=B0=D0=BA=D0=B6?= =?UTF-8?q?=D0=B5=20=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=87=D0=B8?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BE=D0=BA=20=D0=B8?= =?UTF-8?q?=D0=BD=D0=B8=D1=86=D0=B8=D0=B0=D0=BB=D0=B8=D0=B7=D0=B0=D1=86?= =?UTF-8?q?=D0=B8=D0=B8=20HDLC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- balong_flash.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/balong_flash.c b/balong_flash.c index 493b789..695bbaa 100644 --- a/balong_flash.c +++ b/balong_flash.c @@ -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;