Skip to content

Commit 559274f

Browse files
authored
Fix typo (#334)
1 parent 62eb145 commit 559274f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

canopen/lss.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ def fast_scan(self):
248248
:return:
249249
True if a slave is found.
250250
False if there is no candidate.
251-
list is the LSS identities [vendor_id, product_code, revision_number, seerial_number]
251+
list is the LSS identities [vendor_id, product_code, revision_number, serial_number]
252252
:rtype: bool, list
253253
"""
254254
lss_id = [0] * 4
@@ -265,21 +265,21 @@ def fast_scan(self):
265265

266266
if not self.__send_fast_scan_message(lss_id[lss_sub], lss_bit_check, lss_sub, lss_next):
267267
lss_id[lss_sub] |= 1<<lss_bit_check
268-
268+
269269
time.sleep(0.01)
270-
270+
271271
lss_next = (lss_sub + 1) & 3
272272
if not self.__send_fast_scan_message(lss_id[lss_sub], lss_bit_check, lss_sub, lss_next):
273273
return False, None
274274

275275
time.sleep(0.01)
276-
276+
277277
# Now the next 32 bits will be scanned
278278
lss_sub += 1
279279

280280
# Now lss_id contains the entire 128 bits scanned
281281
return True, lss_id
282-
282+
283283
return False, None
284284

285285
def __send_fast_scan_message(self, id_number, bit_checker, lss_sub, lss_next):
@@ -293,7 +293,7 @@ def __send_fast_scan_message(self, id_number, bit_checker, lss_sub, lss_next):
293293
cs = struct.unpack_from("<B", recv_msg)[0]
294294
if cs == CS_IDENTIFY_SLAVE:
295295
return True
296-
296+
297297
return False
298298

299299
def __send_lss_address(self, req_cs, number):

0 commit comments

Comments
 (0)