From 0ca92fb751fd6fb0fd006babdeb6bf11bcef02ba Mon Sep 17 00:00:00 2001 From: Jeremiah K Date: Mon, 24 Apr 2023 13:17:41 -0500 Subject: [PATCH] lower max_bytes in truncate_message --- main.py | 2 +- mmrelay.iss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 7c23fb9..6bf7922 100644 --- a/main.py +++ b/main.py @@ -249,7 +249,7 @@ def on_meshtastic_message(packet, loop=None): def truncate_message( - text, max_bytes=234 + text, max_bytes=230 ): # 234 is the maximum that we can run without an error. Trying it for awhile, otherwise lower this to 230 or less. """ Truncate the given text to fit within the specified byte size. diff --git a/mmrelay.iss b/mmrelay.iss index e3ccffd..591b68c 100644 --- a/mmrelay.iss +++ b/mmrelay.iss @@ -4,7 +4,7 @@ //WizardSmallImageFile=smallwiz.bmp AppName=Matrix <> Meshtastic Relay -AppVersion=0.3.4 +AppVersion=0.3.5 DefaultDirName={userpf}\MM Relay DefaultGroupName=MM Relay UninstallFilesDir={app}