Browse Source

Added option for 12 V

Quite a few PD supplies give 12 V as a fixed PDO, so it makes sense to
give that as an option in the GUI.  Now it is an option.
Clara Hobbs 7 years ago
parent
commit
a473cb6818
2 changed files with 3 additions and 0 deletions
  1. 1
    0
      data/pd-buddy-gtk.ui
  2. 2
    0
      pd-buddy-gtk.py

+ 1
- 0
data/pd-buddy-gtk.ui View File

@@ -167,6 +167,7 @@
167 167
                                     <items>
168 168
                                       <item id="voltage-five" translatable="yes">5</item>
169 169
                                       <item id="voltage-nine" translatable="yes">9</item>
170
+                                      <item id="voltage-twelve" translatable="yes">12</item>
170 171
                                       <item id="voltage-fifteen" translatable="yes">15</item>
171 172
                                       <item id="voltage-twenty" translatable="yes">20</item>
172 173
                                     </items>

+ 2
- 0
pd-buddy-gtk.py View File

@@ -202,6 +202,8 @@ class Handler:
202 202
             voltage.set_active_id('voltage-five')
203 203
         elif self.cfg.v == 9000:
204 204
             voltage.set_active_id('voltage-nine')
205
+        elif self.cfg.v == 12000:
206
+            voltage.set_active_id('voltage-twelve')
205 207
         elif self.cfg.v == 15000:
206 208
             voltage.set_active_id('voltage-fifteen')
207 209
         if self.cfg.v == 20000:

Loading…
Cancel
Save