Closed dstroy0 closed 2 years ago
dynamic ptr alloc achieved, ptr alloc and first init in begin(), reinit NULL every readCommandFromBuffer()
down to 267 bytes global with no output buffer
there are a few variable length array complaints on the rp2040
looks like any warnings have been resolved, closing
allocate
_data_pointers_
dynamicallysince we're doing checks on Parameters for every addCommand already, it would make sense to size this pointer array there
it should be a minimum size of 1(root command) + (greatest Parameters subcommands value) + (greatest number of arguments expected <= UI_MAX_ARGS)
it is not being allocated correctly currently:
char *_data_pointers_[UI_MAX_ARGS + 1]; ///< token_buffer pointers
is theoretically insufficient if we allow for root command + max allowed subcommands + max allowed arguments