File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -245,21 +245,21 @@ def __init__(self, cmd):
245
245
pty = m .group ()
246
246
# rtscts, dsrdtr params are to workaround pyserial bug:
247
247
# http://stackoverflow.com/questions/34831131/pyserial-does-not-play-well-with-virtual-port
248
- self .ser = serial .Serial (pty , interCharTimeout = 1 , rtscts = True , dsrdtr = True )
248
+ self .serial = serial .Serial (pty , interCharTimeout = 1 , rtscts = True , dsrdtr = True )
249
249
250
250
def close (self ):
251
251
import signal
252
252
253
253
os .killpg (os .getpgid (self .subp .pid ), signal .SIGTERM )
254
254
255
255
def read (self , size = 1 ):
256
- return self .ser .read (size )
256
+ return self .serial .read (size )
257
257
258
258
def write (self , data ):
259
- return self .ser .write (data )
259
+ return self .serial .write (data )
260
260
261
261
def inWaiting (self ):
262
- return self .ser .inWaiting ()
262
+ return self .serial .inWaiting ()
263
263
264
264
265
265
class Pyboard :
You can’t perform that action at this time.
0 commit comments