From c3f198fda9191027192b39074398212acfe4c4ee Mon Sep 17 00:00:00 2001 From: DJ2LS <75909252+DJ2LS@users.noreply.github.com> Date: Wed, 7 Dec 2022 15:41:37 +0100 Subject: [PATCH] make sure RX_BUFFER.maxsize is always int --- tnc/data_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tnc/data_handler.py b/tnc/data_handler.py index a259c6de..1b060bca 100644 --- a/tnc/data_handler.py +++ b/tnc/data_handler.py @@ -818,7 +818,7 @@ class DATA: # check if RX_BUFFER isn't full if not RX_BUFFER.full(): # make sure we have always the correct buffer size - RX_BUFFER.maxsize = static.RX_BUFFER_SIZE + RX_BUFFER.maxsize = int(static.RX_BUFFER_SIZE) else: # if full, free space by getting an item self.log.info(