Skip to content

Commit

Permalink
Merge pull request #326 from Duet3D/325-increase-max-array-nesting-an…
Browse files Browse the repository at this point in the history
…d-max-field-length

SerialIo: increased nesting and max field id length
  • Loading branch information
mfs12 authored Nov 14, 2023
2 parents 2e1ccdf + c59c352 commit 792fb83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Hardware/SerialIo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#define DEBUG 0
#include "Debug.hpp"

const size_t MaxArrayNesting = 4;
const size_t MaxArrayNesting = 6;

#if SAM4S
# define UARTn UART0
Expand Down Expand Up @@ -275,7 +275,7 @@ namespace SerialIo
JsonState lastState = jsBegin;

// 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.
String<100> fieldId;
String<150> fieldId;
String<1028> fieldVal;
size_t arrayIndices[MaxArrayNesting];
size_t arrayDepth = 0;
Expand Down

0 comments on commit 792fb83

Please sign in to comment.