fix set_channel

This commit is contained in:
Florent 2026-03-30 08:03:54 -04:00
parent 4f284191b9
commit fd7a0e114c
3 changed files with 6 additions and 6 deletions

View file

@ -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 ];

View file

@ -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" ]

View file

@ -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")