From 9e5a5a0c74cbea57954216dc0b15d2be46b3ae4e Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Fri, 5 Mar 2021 13:44:25 +0800 Subject: [PATCH] remove unneeded base64 padding --- meshtastic/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshtastic/__init__.py b/meshtastic/__init__.py index 211374b..141fcac 100644 --- a/meshtastic/__init__.py +++ b/meshtastic/__init__.py @@ -372,7 +372,7 @@ class MeshInterface: channelSet.settings.append(c.settings) bytes = channelSet.SerializeToString() s = base64.urlsafe_b64encode(bytes).decode('ascii') - return f"https://www.meshtastic.org/d/#{s}" + return f"https://www.meshtastic.org/d/#{s}".replace("=", "") def setURL(self, url): """Set mesh network URL"""