From 6e946475c8205223c67417033e8491e45ce34dce Mon Sep 17 00:00:00 2001 From: Jaime Trinidad <81958808+Jaime-Trinidad@users.noreply.github.com> Date: Fri, 1 Mar 2024 07:18:33 -0600 Subject: [PATCH] decoder fixed (#751) hectoliters measure fixed --- vendor/b-meters/iwmlr3.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vendor/b-meters/iwmlr3.js b/vendor/b-meters/iwmlr3.js index c603bd1f07..e0725c36a4 100644 --- a/vendor/b-meters/iwmlr3.js +++ b/vendor/b-meters/iwmlr3.js @@ -18,9 +18,9 @@ switch (input.fPort) { else if (input.bytes[11] === 0x0E){ data.vif = input.bytes[11]*10; } - //hectoliters - else if(input.bytes[11] === 0x0D){ - data.vif = input.bytes[11]*100; + // hectoliters + else if (input.bytes[11] === 0x0F) { + data.vif = input.bytes[11] * 100; // Corrected to use 0x0F for hectoliters and directly use the byte value as a multiplier } //alarms