Skip to content

Commit 0e67ef3

Browse files
authored
Return hash from channel_hash function
1 parent e924afd commit 0e67ef3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meshtastic/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def channel_hash(data: bytes) -> int:
370370
result = 0
371371
for char in data:
372372
result ^= char
373-
return
373+
return result
374374

375375
def generate_channel_hash(name, key) -> int:
376376
"""generate the channel number by hashing the channel name and psk (accepts str or bytes for both)"""

0 commit comments

Comments
 (0)