You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/technical-reference/eeprom.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,8 @@ The header is 32 bytes long and contains the following values:
41
41
42
42
An example implementation of the checksum algorithm in Python:
43
43
44
-
```Python
44
+
```Python
45
+
45
46
defcalc_checksum(header): #header assumed to be of type bytes
46
47
value=0x55
47
48
for b in header[1:]:
@@ -52,7 +53,6 @@ The header is 32 bytes long and contains the following values:
52
53
53
54
calc_checksum(header_w_checksum) # should return 0 if checksum is correct
54
55
55
-
56
56
```
57
57
58
58
The header format uses little-endian byte ordering for the individual values, e.g. 0x0123 = 0x01as least significant byte and0x23as most significant byte, resulting in a value of 8961
0 commit comments