Use mnemonic variable name

This commit is contained in:
stefanrueger
2026-08-16 07:01:34 +02:00
parent 5d58dc8527
commit 7b7265b542

View File

@@ -2039,7 +2039,7 @@ static int jtag3_paged_write(const PROGRAMMER *pgm, const AVRPART *p, const AVRM
static int jtag3_paged_load(const PROGRAMMER *pgm, const AVRPART *p, const AVRMEM *m,
unsigned int page_size, unsigned int addr, unsigned int n_bytes) {
unsigned int block_size;
unsigned int block_size = 0;
unsigned int maxaddr = addr + n_bytes;
unsigned char cmd[12];
unsigned char *resp = NULL;
@@ -2048,10 +2048,9 @@ static int jtag3_paged_load(const PROGRAMMER *pgm, const AVRPART *p, const AVRME
pmsg_notice2("jtag3_paged_load(.., %s, %d, 0x%04x, %d)\n", m->desc, page_size, addr, n_bytes);
block_size = jtag3_memaddr(pgm, p, m, addr);
if(block_size != addr)
imsg_notice2("mapped to address: 0x%04x\n", block_size);
block_size = 0;
unsigned int memaddr = jtag3_memaddr(pgm, p, m, addr);
if(memaddr != addr)
imsg_notice2("mapped to address: 0x%04x\n", memaddr);
if(!(pgm->flag & PGM_FL_IS_DW) && jtag3_program_enable(pgm) < 0)
return -1;