From 868fb648576145d19f4215c3b039284e7afa7d23 Mon Sep 17 00:00:00 2001 From: GUVWAF Date: Sat, 26 Nov 2022 11:08:00 +0100 Subject: [PATCH] Only set is_licensed if long_name is set --- meshtastic/node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshtastic/node.py b/meshtastic/node.py index 702214d..dfb8da5 100644 --- a/meshtastic/node.py +++ b/meshtastic/node.py @@ -305,13 +305,13 @@ class Node: if long_name is not None: long_name = long_name.strip() p.set_owner.long_name = long_name + p.set_owner.is_licensed = is_licensed if short_name is not None: short_name = short_name.strip() if len(short_name) > nChars: short_name = short_name[:nChars] print(f"Maximum is 4 characters, truncated to {short_name}") p.set_owner.short_name = short_name - p.set_owner.is_licensed = is_licensed # Note: These debug lines are used in unit tests logging.debug(f'p.set_owner.long_name:{p.set_owner.long_name}:')