From 318aacb8b3d26facdfa8f9d1266653dc47550ca4 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Tue, 14 Jul 2026 22:03:50 +0200 Subject: [PATCH 1/2] Fix for issue #2148: handle one more fuse of AVR-LA AVR-LA devices have 10 fuses, yet the GUI so far only had entries for (up to) 9 fuses. Thus, selecting an AVR-LA device, it eventually threw an exception for trying to touch GUI elements that don't exist. --- src/python/memories.ui | 376 +++++++++++++++++++++-------------------- 1 file changed, 193 insertions(+), 183 deletions(-) diff --git a/src/python/memories.ui b/src/python/memories.ui index 4a401e46..1bd6369d 100644 --- a/src/python/memories.ui +++ b/src/python/memories.ui @@ -61,10 +61,10 @@ background-color: rgb(255, 255, 255); - QFrame::Box + QFrame::Shape::Box - QFrame::Sunken + QFrame::Shadow::Sunken 2 @@ -111,10 +111,10 @@ color: rgb(180, 180, 180); - QFrame::Box + QFrame::Shape::Box - QFrame::Sunken + QFrame::Shadow::Sunken 2 @@ -145,10 +145,10 @@ color: rgb(180, 180, 180); background-color: rgb(255, 255, 255); - QFrame::Box + QFrame::Shape::Box - QFrame::Sunken + QFrame::Shadow::Sunken 2 @@ -166,7 +166,7 @@ color: rgb(180, 180, 180); - Qt::Vertical + Qt::Orientation::Vertical @@ -195,7 +195,7 @@ color: rgb(180, 180, 180); - Qt::Horizontal + Qt::Orientation::Horizontal @@ -260,7 +260,7 @@ color: rgb(180, 180, 180); - Qt::Vertical + Qt::Orientation::Vertical @@ -273,7 +273,7 @@ color: rgb(180, 180, 180); - Qt::Horizontal + Qt::Orientation::Horizontal @@ -286,7 +286,7 @@ color: rgb(180, 180, 180); - Qt::Vertical + Qt::Orientation::Vertical @@ -384,7 +384,7 @@ color: rgb(180, 180, 180); - Qt::Vertical + Qt::Orientation::Vertical @@ -407,7 +407,7 @@ color: rgb(180, 180, 180); - Qt::Horizontal + Qt::Orientation::Horizontal @@ -420,7 +420,7 @@ color: rgb(180, 180, 180); - Qt::Vertical + Qt::Orientation::Vertical @@ -436,10 +436,10 @@ color: rgb(180, 180, 180); - QFrame::StyledPanel + QFrame::Shape::StyledPanel - QFrame::Raised + QFrame::Shadow::Raised @@ -460,10 +460,10 @@ color: rgb(180, 180, 180); background-color: rgb(255,240,240); - QFrame::Box + QFrame::Shape::Box - QFrame::Raised + QFrame::Shadow::Raised 2 @@ -472,7 +472,7 @@ color: rgb(180, 180, 180); Buffer - Qt::AlignCenter + Qt::AlignmentFlag::AlignCenter @@ -517,10 +517,10 @@ color: rgb(180, 180, 180); background-color: rgb(255,240,240); - QFrame::Box + QFrame::Shape::Box - QFrame::Raised + QFrame::Shadow::Raised 2 @@ -529,7 +529,7 @@ color: rgb(180, 180, 180); Buffer - Qt::AlignCenter + Qt::AlignmentFlag::AlignCenter @@ -591,7 +591,7 @@ color: rgb(180, 180, 180); - Qt::Horizontal + Qt::Orientation::Horizontal @@ -604,7 +604,7 @@ color: rgb(180, 180, 180); - Qt::Horizontal + Qt::Orientation::Horizontal @@ -696,7 +696,7 @@ color: rgb(180, 180, 180); - Qt::Vertical + Qt::Orientation::Vertical @@ -722,7 +722,7 @@ color: rgb(180, 180, 180); - Qt::Horizontal + Qt::Orientation::Horizontal @@ -735,7 +735,7 @@ color: rgb(180, 180, 180); - Qt::Vertical + Qt::Orientation::Vertical @@ -840,7 +840,7 @@ color: rgb(180, 180, 180); - Qt::Vertical + Qt::Orientation::Vertical @@ -866,7 +866,7 @@ color: rgb(180, 180, 180); - Qt::Vertical + Qt::Orientation::Vertical @@ -879,7 +879,7 @@ color: rgb(180, 180, 180); - Qt::Horizontal + Qt::Orientation::Horizontal @@ -905,84 +905,6 @@ color: rgb(180, 180, 180); Fuses - - - - false - - - Fuse6 - - - - - - - - 0 - 0 - - - - - 50 - 0 - - - - - - - - false - - - Fuse2 - - - - - - - - 0 - 0 - - - - - 50 - 0 - - - - - - - - - 0 - 0 - - - - - 50 - 0 - - - - - - - - false - - - Fuse3 - - - @@ -999,58 +921,6 @@ color: rgb(180, 180, 180); - - - - false - - - Fuse0 - - - - - - - - 0 - 0 - - - - - 50 - 0 - - - - - - - - false - - - Fuse4 - - - - - - - - 0 - 0 - - - - - 50 - 0 - - - - @@ -1067,6 +937,52 @@ color: rgb(180, 180, 180); + + + + + 0 + 0 + + + + + 50 + 0 + + + + + + + + false + + + Fuse2 + + + + + + + false + + + Fuse1 + + + + + + + false + + + Fuse7 + + + @@ -1077,6 +993,90 @@ color: rgb(180, 180, 180); + + + + + 0 + 0 + + + + + 50 + 0 + + + + + + + + + 0 + 0 + + + + + 50 + 0 + + + + + + + + false + + + Fuse6 + + + + + + + false + + + Fuse3 + + + + + + + + 0 + 0 + + + + + 50 + 0 + + + + + + + + + 0 + 0 + + + + + 50 + 0 + + + + @@ -1093,18 +1093,8 @@ color: rgb(180, 180, 180); - - - - false - - - Fuse7 - - - - - + + 0 @@ -1119,6 +1109,26 @@ color: rgb(180, 180, 180); + + + + false + + + Fuse4 + + + + + + + false + + + Fuse0 + + + @@ -1129,16 +1139,16 @@ color: rgb(180, 180, 180); - - - - false - + + - Fuse1 + Fuse9 + + + @@ -1161,7 +1171,7 @@ color: rgb(180, 180, 180); - Qt::Vertical + Qt::Orientation::Vertical @@ -1197,7 +1207,7 @@ color: rgb(180, 180, 180); - Qt::Horizontal + Qt::Orientation::Horizontal @@ -1210,7 +1220,7 @@ color: rgb(180, 180, 180); - Qt::Vertical + Qt::Orientation::Vertical @@ -1230,10 +1240,10 @@ color: rgb(180, 180, 180); - Qt::Horizontal + Qt::Orientation::Horizontal - QDialogButtonBox::Ok + QDialogButtonBox::StandardButton::Ok From 78e0e0aafed5005329228944f1517e170dff8a4b Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Tue, 14 Jul 2026 22:07:15 +0200 Subject: [PATCH 2/2] Extend the RE for modern AVRs to all two-letter middle strings As Microchip introduces new AVR families, they seem to follow now the scheme to have "AVR", the number of KiB flash, two letters, and the number of pins of the device. Extend the regular expression to match these (and thus also future devices) when displaying the device selection groups. --- src/python/adgui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/adgui.py b/src/python/adgui.py index 720b2317..93613e0d 100755 --- a/src/python/adgui.py +++ b/src/python/adgui.py @@ -72,7 +72,7 @@ def classify_devices(): 'avr_de': [], 'other': [] } - avr_de_re = re.compile(r'AVR\d+[DEL][A-Z]\d+') + avr_de_re = re.compile(r'AVR\d+[A-Z][A-Z]\d+') part = ad.lfirst(ad.cvar.part_list) while part: p = ad.ldata_avrpart(part)