mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-28 20:09:12 +03:00
Add a category "bootloaders" in the programmer selection dialog
This category triggers for all programmers that have PM_SPM set.
This commit is contained in:
@@ -98,6 +98,7 @@ def classify_programmers():
|
||||
'pdi': [],
|
||||
'updi': [],
|
||||
'jtag': [],
|
||||
'spm': [],
|
||||
'hv': [],
|
||||
'other': []
|
||||
}
|
||||
@@ -132,6 +133,10 @@ def classify_programmers():
|
||||
for name in names:
|
||||
result['jtag'].append(name)
|
||||
matched = True
|
||||
if (pm & ad.PM_SPM) != 0:
|
||||
for name in names:
|
||||
result['spm'].append(name)
|
||||
matched = True
|
||||
if (pm & (ad.PM_HVSP | ad.PM_HVPP)) != 0:
|
||||
for name in names:
|
||||
result['hv'].append(name)
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>402</width>
|
||||
<height>265</height>
|
||||
<width>416</width>
|
||||
<height>281</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
@@ -64,16 +64,6 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QCheckBox" name="pdi">
|
||||
<property name="text">
|
||||
<string>PDI</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="0">
|
||||
<widget class="QCheckBox" name="updi">
|
||||
<property name="text">
|
||||
@@ -105,6 +95,16 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="0">
|
||||
<widget class="QCheckBox" name="hv">
|
||||
<property name="text">
|
||||
<string>HVSP/HVPP</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="0">
|
||||
<widget class="QCheckBox" name="other">
|
||||
<property name="text">
|
||||
<string>Other</string>
|
||||
@@ -114,10 +114,20 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<widget class="QCheckBox" name="hv">
|
||||
<item row="2" column="0">
|
||||
<widget class="QCheckBox" name="pdi">
|
||||
<property name="text">
|
||||
<string>HVSP/HVPP</string>
|
||||
<string>PDI</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<widget class="QCheckBox" name="spm">
|
||||
<property name="text">
|
||||
<string>Bootloaders</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
|
||||
Reference in New Issue
Block a user