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

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

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

Loading…
Cancel
Save