From 8a717987ec1cdb9612fec4d42cdd1ec4165b1489 Mon Sep 17 00:00:00 2001 From: Stefan Rueger Date: Tue, 9 Aug 2022 13:19:40 +0100 Subject: [PATCH] Change unsigned short eecr; to unsigned char eecr; in libavrdude's AVRPART --- src/developer_opts.c | 2 +- src/libavrdude.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/developer_opts.c b/src/developer_opts.c index de245608..b4f69753 100644 --- a/src/developer_opts.c +++ b/src/developer_opts.c @@ -533,7 +533,7 @@ static void dev_part_strct(AVRPART *p, bool tsv, AVRPART *base) { _if_partout(intcmp, "0x%02x", idr); _if_partout(intcmp, "0x%02x", rampz); _if_partout(intcmp, "0x%02x", spmcr); - _if_partout(intcmp, "0x%02x", eecr); // Why is eecr an unsigned short? + _if_partout(intcmp, "0x%02x", eecr); _if_partout(intcmp, "0x%04x", mcu_base); _if_partout(intcmp, "0x%04x", nvm_base); _if_partout(intcmp, "0x%04x", ocd_base); diff --git a/src/libavrdude.h b/src/libavrdude.h index 9ab1a8d9..fb4a53dd 100644 --- a/src/libavrdude.h +++ b/src/libavrdude.h @@ -270,7 +270,7 @@ typedef struct avrpart { unsigned char idr; /* JTAG ICE mkII XML file parameter */ unsigned char rampz; /* JTAG ICE mkII XML file parameter */ unsigned char spmcr; /* JTAG ICE mkII XML file parameter */ - unsigned short eecr; /* JTAC ICE mkII XML file parameter */ + unsigned char eecr; /* JTAC ICE mkII XML file parameter */ unsigned int mcu_base; /* Base address of MCU control block in ATxmega devices */ unsigned int nvm_base; /* Base address of NVM controller in ATxmega devices */ unsigned int ocd_base; /* Base address of OCD module in AVR8X/UPDI devices */