From 0e67ef37aab4c223a10a9a81b141cf7eeb9da2ae Mon Sep 17 00:00:00 2001 From: Ian McEwen Date: Thu, 6 Nov 2025 14:55:41 -0700 Subject: [PATCH] Return hash from channel_hash function --- meshtastic/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshtastic/util.py b/meshtastic/util.py index 23fe246..55b2a27 100644 --- a/meshtastic/util.py +++ b/meshtastic/util.py @@ -370,7 +370,7 @@ def channel_hash(data: bytes) -> int: result = 0 for char in data: result ^= char - return + return result def generate_channel_hash(name, key) -> int: """generate the channel number by hashing the channel name and psk (accepts str or bytes for both)"""