Skip to content

Commit af0d8a0

Browse files
committed
Fix max data limit from 128 to 127 due to miscaculation and possible overlap
Thanks @TheMaskedDeveloper for pointing this out
1 parent cc2eac1 commit af0d8a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

esp3d/config.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,9 @@ typedef enum {
348348
#define EP_TARGET_FW 461 //1 bytes = flag
349349
#define EP_TIMEZONE 462//1 bytes = flag
350350
#define EP_TIME_ISDST 463//1 bytes = flag
351-
#define EP_TIME_SERVER1 464//129 bytes 128+1 = string ; warning does not support multibyte char like chinese
352-
#define EP_TIME_SERVER2 593 //129 bytes 128+1 = string ; warning does not support multibyte char like chinese
353-
#define EP_TIME_SERVER3 722 //129 bytes 128+1 = string ; warning does not support multibyte char like chinese
351+
#define EP_TIME_SERVER1 464//128 bytes 127+1 = string ; warning does not support multibyte char like chinese
352+
#define EP_TIME_SERVER2 593 //128 bytes 127+1 = string ; warning does not support multibyte char like chinese
353+
#define EP_TIME_SERVER3 722 //128 bytes 127+1 = string ; warning does not support multibyte char like chinese
354354
#define EP_IS_DIRECT_SD 850//1 bytes = flag
355355
#define EP_PRIMARY_SD 851//1 bytes = flag
356356
#define EP_SECONDARY_SD 852//1 bytes = flag
@@ -503,7 +503,7 @@ const uint16_t Setting[][2] = {
503503
#define MIN_PASSWORD_LENGTH 0
504504
#define MAX_LOCAL_PASSWORD_LENGTH 16
505505
#define MIN_LOCAL_PASSWORD_LENGTH 1
506-
#define MAX_DATA_LENGTH 128
506+
#define MAX_DATA_LENGTH 127
507507
#define MIN_DATA_LENGTH 0
508508
#define IP_LENGTH 4
509509
#define INTEGER_LENGTH 4

0 commit comments

Comments
 (0)