File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ def openchannel(channel):
135135 response .close ()
136136 print ("OK" )
137137 response = None
138- except (ValueError , RuntimeError ) as e :
138+ except (ValueError , RuntimeError ):
139139 print ("Probably worked" )
140140 wifi .reset ()
141141 response = None
@@ -223,13 +223,11 @@ def switchpage(tup):
223223 x = math .floor (p [0 ] / 80 )
224224 y = abs (math .floor (p [1 ] / 80 ) - 2 )
225225 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 :
229228 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 :
233231 page , page_vals = switchpage (page_vals [index ])
234232 else :
235233 page [index ](page_vals [index ])
You can’t perform that action at this time.
0 commit comments