Skip to content

Commit 81cf8da

Browse files
committed
Fix NameError by using existing SIZE_2_8_INCH_NEWREV constant
1 parent a3a375d commit 81cf8da

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

configure.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
size_list = (
8484
SIZE_0_96_INCH,
8585
SIZE_2_x_INCH,
86-
SIZE_2_8_ROUND_USB,
86+
SIZE_2_8_INCH_NEWREV,
8787
SIZE_3_5_INCH,
8888
SIZE_4_6_INCH,
8989
SIZE_5_INCH,
@@ -110,7 +110,7 @@
110110
('TUR_USB', SIZE_8_8_INCH): TURING_MODEL,
111111
('TUR_USB', SIZE_8_8_INCH_NEWREV): TURING_MODEL,
112112
('TUR_USB', SIZE_12_3_INCH): TURING_MODEL,
113-
('TUR_USB', SIZE_2_8_ROUND_USB): TURING_MODEL,
113+
('TUR_USB', SIZE_2_8_INCH_NEWREV): TURING_MODEL,
114114
('WEACT_A', SIZE_3_5_INCH): WEACT_MODEL,
115115
('WEACT_B', SIZE_0_96_INCH): WEACT_MODEL,
116116

@@ -135,7 +135,7 @@
135135
(TURING_MODEL, SIZE_8_8_INCH): 'C',
136136
(TURING_MODEL, SIZE_8_8_INCH_NEWREV): 'TUR_USB',
137137
(TURING_MODEL, SIZE_12_3_INCH): 'TUR_USB',
138-
(TURING_MODEL, SIZE_2_8_ROUND_USB): 'TUR_USB',
138+
(TURING_MODEL, SIZE_2_8_INCH_NEWREV): 'TUR_USB',
139139
(USBPCMONITOR_MODEL, SIZE_3_5_INCH): 'A',
140140
(USBPCMONITOR_MODEL, SIZE_5_INCH): 'A',
141141
(WEACT_MODEL, SIZE_0_96_INCH): 'WEACT_B',
@@ -474,7 +474,7 @@ def load_config_values(self):
474474
if size == SIZE_8_8_INCH and self.config['display']['REVISION'] == 'TUR_USB':
475475
size = SIZE_8_8_INCH_NEWREV
476476
if size == SIZE_2_x_INCH and self.config['display']['REVISION'] == 'TUR_USB':
477-
size = SIZE_2_8_ROUND_USB
477+
size = SIZE_2_8_INCH_NEWREV
478478
self.size_cb.set(size)
479479
except:
480480
self.size_cb.current(0)
@@ -622,7 +622,7 @@ def on_size_change(self, e=None):
622622
size = self.size_cb.get()
623623

624624
# For '2.1" / 2.8"' size, search for themes of both sizes
625-
if size == SIZE_2_x_INCH or size == SIZE_2_8_ROUND_USB:
625+
if size == SIZE_2_x_INCH or size == SIZE_2_8_INCH_NEWREV:
626626
themes = get_themes(_SIZE_2_1_INCH)
627627
themes += get_themes(_SIZE_2_8_INCH)
628628
# For 8.8" & 9.2" sizes, search for themes of both sizes

0 commit comments

Comments
 (0)