Skip to content

Commit 7273339

Browse files
authored
Update eprom.py
Added bitwise complement to checksum printed to ardour so values match on screen to what is returned from the uC
1 parent 549d546 commit 7273339

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eprom.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585

8686
time.sleep(0.001)
8787
print("Writing data. Current porcentage:{:.2%}".format(i/numsectors),end='\r')
88-
print("CHK:", CHK)
88+
print("CHK:", ~CHK)
8989
response=~CHK
9090

9191
#keeps trying while the replied checksum is not correct
@@ -208,4 +208,4 @@
208208
print("\nDone\n")
209209
if(option==7):
210210
print("See ya!")
211-
break
211+
break

0 commit comments

Comments
 (0)