diff --git a/pyproject.toml b/pyproject.toml index 0832620..c2ea0e1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "meshcore" -version = "0.3.2" +version = "0.3.3" authors = [ { name="Florent de Lamotte", email="florent@frizoncorrea.fr" }, ] diff --git a/src/meshcore/mclib.py b/src/meshcore/mclib.py index 9970b35..0b8c619 100644 --- a/src/meshcore/mclib.py +++ b/src/meshcore/mclib.py @@ -364,7 +364,7 @@ class MeshCore: case 11: # contact self.result.set_result("meshcore://" + data[1:].hex()) case 12: # battery voltage - self.result.set_result(int.from_bytes(data[1:2], byteorder='little')) + self.result.set_result(int.from_bytes(data[1:3], byteorder='little')) case 13: # device info res = {} res["fw ver"] = data[1]