From 26f054ac1b5a5594d55b673fd60139052119c30b Mon Sep 17 00:00:00 2001 From: "DESKTOP-BB\\bruno" Date: Tue, 8 Aug 2023 11:35:23 +0200 Subject: [PATCH] Report roundtrip time in ms --- minimalmodbus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minimalmodbus.py b/minimalmodbus.py index 8d22676..3226d86 100644 --- a/minimalmodbus.py +++ b/minimalmodbus.py @@ -1512,7 +1512,7 @@ def _communicate(self, request: bytes, number_of_bytes_to_read: int) -> bytes: " Timeout for reading: {:.1f} ms.\n" ).format( _describe_bytes(answer), - roundtrip_time, + roundtrip_time * _SECONDS_TO_MILLISECONDS, timeout_time, ) self._print_debug(text)