From 307ce852231155014aad61383bfa098678073fc7 Mon Sep 17 00:00:00 2001 From: internal <> Date: Mon, 31 Jul 2023 21:28:24 +0200 Subject: [PATCH] select image start according to reg 0x10 --- apps/octonet/ddupdate.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/apps/octonet/ddupdate.c b/apps/octonet/ddupdate.c index 5c97692..7d6b9d0 100644 --- a/apps/octonet/ddupdate.c +++ b/apps/octonet/ddupdate.c @@ -109,20 +109,14 @@ static int update_flash(struct ddflash *ddf) stat |= 1; return stat; break; - case 0x21: - case 0x22: - case 0x24: - case 0x14: - imgadr = 0; default: { uint32_t val; if (!readreg(ddf->fd, (ddf->link << 28) | 0x10, &val)) { - printf("reg0x10=%08x\n", val); + //printf("reg0x10=%08x\n", val); if ((val >> 24) == 5) imgadr = 0; } - printf("imgadr= %08x\n", imgadr); } fname = ddf->fname; default_fname = devid2fname(ddf->id.device, &name);