Skip to content

Commit df115c2

Browse files
authored
Try to fix eeprom.md formatting again
1 parent 772e69b commit df115c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/technical-reference/eeprom.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ The header is 32 bytes long and contains the following values:
4141

4242
An example implementation of the checksum algorithm in Python:
4343

44-
```Python
44+
```Python
45+
4546
def calc_checksum(header): #header assumed to be of type bytes
4647
value=0x55
4748
for b in header[1:]:
@@ -52,7 +53,6 @@ The header is 32 bytes long and contains the following values:
5253

5354
calc_checksum(header_w_checksum) # should return 0 if checksum is correct
5455

55-
5656
```
5757

5858
The header format uses little-endian byte ordering for the individual values, e.g. 0x0123 = 0x01 as least significant byte and 0x23 as most significant byte, resulting in a value of 8961

0 commit comments

Comments
 (0)