remove unneeded base64 padding

This commit is contained in:
Kevin Hester
2021-03-05 13:44:25 +08:00
parent fcb4d3ec5b
commit 9e5a5a0c74

View File

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