Skip to content

Commit 792fb83

Browse files
authored
Merge pull request #326 from Duet3D/325-increase-max-array-nesting-and-max-field-length
SerialIo: increased nesting and max field id length
2 parents 2e1ccdf + c59c352 commit 792fb83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Hardware/SerialIo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#define DEBUG 0
1717
#include "Debug.hpp"
1818

19-
const size_t MaxArrayNesting = 4;
19+
const size_t MaxArrayNesting = 6;
2020

2121
#if SAM4S
2222
# define UARTn UART0
@@ -275,7 +275,7 @@ namespace SerialIo
275275
JsonState lastState = jsBegin;
276276

277277
// fieldId is the name of the field being received. A '^' character indicates the position of an _ecv_array index, and a ':' character indicates a field separator.
278-
String<100> fieldId;
278+
String<150> fieldId;
279279
String<1028> fieldVal;
280280
size_t arrayIndices[MaxArrayNesting];
281281
size_t arrayDepth = 0;

0 commit comments

Comments
 (0)