From 399656d1ab6725eeb8c5a812dbd4d65ec0d94f6f Mon Sep 17 00:00:00 2001 From: fluidvanadium Date: Tue, 4 Feb 2025 07:11:31 +0000 Subject: [PATCH] set MAX_FILE_LENGTH to about 2 megabytes --- common/trice_limits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/trice_limits.h b/common/trice_limits.h index 0a4d666b9..fa7ce7489 100644 --- a/common/trice_limits.h +++ b/common/trice_limits.h @@ -8,7 +8,7 @@ constexpr int MAX_NAME_LENGTH = 0xff; // max size for chat messages and text contents constexpr int MAX_TEXT_LENGTH = 0xfff; // max size for deck files and pictures -constexpr int MAX_FILE_LENGTH = 0xffffff; // about 16 mega bytes +constexpr int MAX_FILE_LENGTH = 0x1fffff; // about 2 megabytes constexpr uint MINIMUM_DIE_SIDES = 2; constexpr uint MAXIMUM_DIE_SIDES = 1000000;