mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-25 22:13:53 +08:00
Remove unused local variable i (#1265)
This commit is contained in:
2
cereal
2
cereal
Submodule cereal updated: b0c746b1e1...6511990644
@@ -13,7 +13,7 @@ def calc_checksum(data):
|
||||
checksum = 0xFF
|
||||
for curr in data[:-1]:
|
||||
shift = 0x80
|
||||
for i in range(0, 8):
|
||||
for _ in range(0, 8):
|
||||
bit_sum = curr & shift
|
||||
temp_chk = checksum & 0x80
|
||||
if (bit_sum != 0):
|
||||
|
||||
Reference in New Issue
Block a user