Skip to content

Commit a2c988a

Browse files
committed
Add docstring for _generate_crc()
1 parent 1ebd4ed commit a2c988a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

adafruit_ags02ma.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@
4141

4242

4343
def _generate_crc(data):
44-
"""8-bit CRC algorithm for checking data"""
44+
"""8-bit CRC algorithm for checking data
45+
46+
:param bytearray data: The data to generate a CRC for
47+
"""
48+
4549
crc = _AGS02MA_CRC8_INIT
4650
# calculates 8-Bit checksum with given polynomial
4751
for byte in data:

0 commit comments

Comments
 (0)