From c2720fc2fba6f5f8ac65188e795385fb6c6cd267 Mon Sep 17 00:00:00 2001 From: Simon Dugas Date: Tue, 11 May 2021 10:41:32 -0400 Subject: [PATCH] modbus: fix quantity and count calculation The [Modbus Spec S6.11](https://modbus.org/docs/Modbus_Application_Protocol_V1_1b.pdf) clearly states that the `count = quantity / 8` and not the other way around. This is fixed in sawp-0.5.0. --- rust/Cargo.toml.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/Cargo.toml.in b/rust/Cargo.toml.in index 234d5dc026..9681b6ac0c 100644 --- a/rust/Cargo.toml.in +++ b/rust/Cargo.toml.in @@ -33,8 +33,8 @@ widestring = "~0.4.3" flate2 = "~1.0.19" brotli = "~3.3.0" -sawp-modbus = "~0.4.0" -sawp = "~0.4.0" +sawp-modbus = "~0.5.0" +sawp = "~0.5.0" der-parser = "~4.0.2" kerberos-parser = "~0.5.0" ntp-parser = "~0.4.0" -- 2.47.3