From 070e371490292a91925b23d001313ea14a1c4d15 Mon Sep 17 00:00:00 2001 From: Benjamin Braatz Date: Tue, 30 Mar 2021 16:11:38 +0200 Subject: [PATCH] Small docstring fix. --- controlpi_plugins/modbus.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controlpi_plugins/modbus.py b/controlpi_plugins/modbus.py index ed8d867..2eab95b 100644 --- a/controlpi_plugins/modbus.py +++ b/controlpi_plugins/modbus.py @@ -16,7 +16,7 @@ def crc_slow(message: bytes) -> bytes: the given message and this CRC is returned as two bytes (low byte first). - (This is the slow version without precomputed table.) + (This is the "slow" version without precomputed table.) >>> crc_slow(bytes([0x08, 0x01, 0x00, 0x06, 0x00, 0x06])).hex() '5c90' @@ -68,6 +68,8 @@ def crc(message: bytes) -> bytes: the given message and this CRC is returned as two bytes (low byte first). + (This is the "fast" version with precomputed table.) + >>> crc(bytes([0x08, 0x01, 0x00, 0x06, 0x00, 0x06])).hex() '5c90' >>> crc(bytes([0x08, 0x01, 0x01, 0x17])).hex() -- 2.34.1