Skip to content

Commit

Permalink
decoder fixed (#751)
Browse files Browse the repository at this point in the history
hectoliters measure fixed
  • Loading branch information
Jaime-Trinidad authored Mar 1, 2024
1 parent b27ec4c commit 6e94647
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vendor/b-meters/iwmlr3.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6e94647

Please sign in to comment.