Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4ee01d3

Browse filesBrowse files
committed
Add WEBDUINO_COMMANDS_COUNT macro
Add macro for configuring maximum number of commands that can be defined. This macro replaces hardcoded "8" number.
1 parent 0b1463d commit 4ee01d3
Copy full SHA for 4ee01d3

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Open diff view settings
Collapse file

‎WebServer.h‎

Copy file name to clipboardExpand all lines: WebServer.h
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@
5353
#define WEBDUINO_READ_TIMEOUT_IN_MS 1000
5454
#endif
5555

56+
#ifndef WEBDUINO_COMMANDS_COUNT
57+
#define WEBDUINO_COMMANDS_COUNT 8
58+
#endif
59+
5660
#ifndef WEBDUINO_URL_PATH_COMMAND_LENGTH
5761
#define WEBDUINO_URL_PATH_COMMAND_LENGTH 8
5862
#endif
@@ -329,7 +333,7 @@ class WebServer: public Print
329333
{
330334
const char *verb;
331335
Command *cmd;
332-
} m_commands[8];
336+
} m_commands[WEBDUINO_COMMANDS_COUNT];
333337
unsigned char m_cmdCount;
334338
UrlPathCommand *m_urlPathCmd;
335339

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.