File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ def openchannel(channel):
135
135
response .close ()
136
136
print ("OK" )
137
137
response = None
138
- except (ValueError , RuntimeError ) as e :
138
+ except (ValueError , RuntimeError ):
139
139
print ("Probably worked" )
140
140
wifi .reset ()
141
141
response = None
@@ -223,13 +223,11 @@ def switchpage(tup):
223
223
x = math .floor (p [0 ] / 80 )
224
224
y = abs (math .floor (p [1 ] / 80 ) - 2 )
225
225
index = 3 * x + y
226
- if (
227
- last_index == index
228
- ): # Used to prevent the touchscreen sending incorrect results
226
+ # Used to prevent the touchscreen sending incorrect results
227
+ if last_index == index :
229
228
if page [index ]:
230
- if (
231
- page [index ] == switchpage
232
- ): # pylint: disable=comparison-with-callable
229
+ # pylint: disable=comparison-with-callable
230
+ if page [index ] == switchpage :
233
231
page , page_vals = switchpage (page_vals [index ])
234
232
else :
235
233
page [index ](page_vals [index ])
You can’t perform that action at this time.
0 commit comments