diff --git a/flake.nix b/flake.nix index bc0b296..cb7c0c9 100644 --- a/flake.nix +++ b/flake.nix @@ -17,12 +17,12 @@ meshcore = python3Packages.buildPythonPackage rec { pname = "meshcore"; - version = "2.3.2"; + version = "2.3.5"; pyproject = true; src = python3Packages.fetchPypi { inherit pname version; - sha256 = "sha256-mM64woqKvltbd/CUGzD5m6PU/CNQ923pm2yKTneNrW8="; + sha256 = "sha256-EUK0iFaCN2tpOL3XL2ejVLGz/gLTdvzPpvgBxETLL3w="; }; build-system = [ python3Packages.hatchling ]; diff --git a/pyproject.toml b/pyproject.toml index fde5e07..812b22c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "meshcore-cli" -version = "1.5.4" +version = "1.5.5" authors = [ { name="Florent de Lamotte", email="florent@frizoncorrea.fr" }, ] @@ -17,7 +17,7 @@ classifiers = [ ] license = "MIT" license-files = ["LICEN[CS]E*"] -dependencies = [ "meshcore >= 2.3.2", +dependencies = [ "meshcore >= 2.3.5", "bleak >= 0.22", "prompt_toolkit >= 3.0.50", "requests >= 2.28.0" ] diff --git a/src/meshcore_cli/meshcore_cli.py b/src/meshcore_cli/meshcore_cli.py index 8e91d17..79250d4 100644 --- a/src/meshcore_cli/meshcore_cli.py +++ b/src/meshcore_cli/meshcore_cli.py @@ -35,7 +35,7 @@ import re from meshcore import MeshCore, EventType, logger # Version -VERSION = "v1.5.4" +VERSION = "v1.5.5" # default ble address is stored in a config file MCCLI_CONFIG_DIR = str(Path.home()) + "/.config/meshcore/" @@ -2614,7 +2614,7 @@ async def next_cmd(mc, cmds, json_output=False): elif len(cmds[2]) != 32: res = None else: - res = await set_channel(mc, "", cmds[1], bytes.fromhex(cmds[3])) + res = await set_channel(mc, "", cmds[1], bytes.fromhex(cmds[2])) if res is None: print("Error adding channel")