@@ -248,7 +248,7 @@ def fast_scan(self):
248
248
:return:
249
249
True if a slave is found.
250
250
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 ]
252
252
:rtype: bool, list
253
253
"""
254
254
lss_id = [0 ] * 4
@@ -265,21 +265,21 @@ def fast_scan(self):
265
265
266
266
if not self .__send_fast_scan_message (lss_id [lss_sub ], lss_bit_check , lss_sub , lss_next ):
267
267
lss_id [lss_sub ] |= 1 << lss_bit_check
268
-
268
+
269
269
time .sleep (0.01 )
270
-
270
+
271
271
lss_next = (lss_sub + 1 ) & 3
272
272
if not self .__send_fast_scan_message (lss_id [lss_sub ], lss_bit_check , lss_sub , lss_next ):
273
273
return False , None
274
274
275
275
time .sleep (0.01 )
276
-
276
+
277
277
# Now the next 32 bits will be scanned
278
278
lss_sub += 1
279
279
280
280
# Now lss_id contains the entire 128 bits scanned
281
281
return True , lss_id
282
-
282
+
283
283
return False , None
284
284
285
285
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):
293
293
cs = struct .unpack_from ("<B" , recv_msg )[0 ]
294
294
if cs == CS_IDENTIFY_SLAVE :
295
295
return True
296
-
296
+
297
297
return False
298
298
299
299
def __send_lss_address (self , req_cs , number ):
0 commit comments