Skip to content

Commit d15202d

Browse files
committed
correction in examples
1 parent 6f6616d commit d15202d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/deleteAll.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8 -*-
33

4-
from R305 import DeleteAll
4+
from r305 import DeleteAll
55
import sys
66
import serial
77
import time
88

99
device = sys.argv[1] #this is the serial device (ie R305)
10-
baudrate = sys,argv[2] #this is the baudrate for the serial communication
10+
baudrate = sys.argv[2] #this is the baudrate for the serial communication
1111

1212
#generally serial device can be found at /dev/ttyUSBx
1313
#generally the baudrate for r305 is 57600
@@ -16,7 +16,7 @@
1616
ser = serial.Serial(device, baudrate) #init serial
1717

1818
command = DeleteAll.getHeader() #get the dataframe for the command
19-
ser.write(bytearray(data)); #the data must be buyte a array
19+
ser.write(bytearray(command)); #the data must be buyte a array
2020
time.sleep(1) #wait for the device to process command
2121
response = ser.read(ser.inWaiting())#read all the data that is comming from r305
2222
print(DeleteAll.parse(response)) #parse the output of the command.

0 commit comments

Comments
 (0)