Skip to content

Commit b426a43

Browse files
committed
fix: endianness issue
1 parent 766f3fd commit b426a43

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: "Intouch2-MQTT"
22
description: "A bridge between intouch2, used in spa systems, and MQTT 3.3"
3-
version: "0.1.260"
3+
version: "0.1.261"
44
slug: "intouch2-mqtt"
55
init: false
66
arch:

intouch2/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "intouch2"
3-
version = "0.3.1"
3+
version = "0.3.2"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

intouch2/src/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ impl<'a> DatasContent<'a> for u16 {
7979

8080
impl<'a> DatasContent<'a> for i16 {
8181
fn parse(input: &'a [u8]) -> nom::IResult<&'a [u8], Self> {
82-
nom::number::complete::be_i16(input)
82+
nom::number::complete::le_i16(input)
8383
}
8484

8585
fn compose(&self) -> Cow<'a, [u8]> {
86-
Cow::Owned(self.to_be_bytes().into())
86+
Cow::Owned(self.to_le_bytes().into())
8787
}
8888
}
8989

0 commit comments

Comments
 (0)