You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Shell as a "library" within PlatformIO, I tried #define CONFIG_SHELL_MAX_COMMANDS 10 before #include <Shell.h> , but it seems like this define is either being ignored, or is somehow executed AFTER the #include. Not sure what's going on, but short of editing Shell.h, there is no way to support more than 5 shell commands. (shell_register returns false for any command beyond the first 5).
The text was updated successfully, but these errors were encountered:
As @wx4cb commented you need to edit #define CONFIG_SHELL_MAX_COMMANDS 10 in the Shell.h file inside the library.
The library was designed to allocate the memory it needs statically. Giving the user the power to change the number of commands using an API call would almost certainly require dynamic memory allocation which is not recommended in tiny embedded systems.
Using Shell as a "library" within PlatformIO, I tried
#define CONFIG_SHELL_MAX_COMMANDS 10
before#include <Shell.h>
, but it seems like this define is either being ignored, or is somehow executed AFTER the #include. Not sure what's going on, but short of editing Shell.h, there is no way to support more than 5 shell commands. (shell_register returns false for any command beyond the first 5).The text was updated successfully, but these errors were encountered: