aboutsummaryrefslogtreecommitdiff
path: root/examples/WebServer/WebServer.ino
diff options
context:
space:
mode:
authorSZEDER Gábor <szeder.dev@gmail.com>2017-09-26 17:36:38 +0200
committerJohn Whittington <john.whittington@cruxproductdesign.com>2017-10-03 12:54:13 +0100
commitb8f5eaa816daeaa49340e989376c8d5d08325047 (patch)
treed97b262c2a840a7341af64ed19b641f605208888 /examples/WebServer/WebServer.ino
parentc2d17c825a7b9e20c8ad76d5983007db20fa5e0b (diff)
Recognize serial monitors with full path in MONITOR_CMD
When assembling the command line for the various supported serial monitors, MONITOR_CMD must match the name of one of the supported commands to be recognized. Serial monitors given with leading path components are not recognized, and a command like make MONITOR_CMD=~/src/picocom/picocom monitor errors out as the fallback monitor command is executed instead of the picocom-specific one. However, sometimes it's necessary to specify a supported serial monitor with its full path, because e.g. the user wants to tests a freshly compiled version before installing it. Sure, the user could just run the serial monitor directly, but that's cumbersome because he has to pay attention to use the right baud rate and USB port. So strip all leading path components, if present, from MONITOR_CMD using the 'nondir' make function before checking whether it's one of the supported serial monitors. This way commands like the above would just work. While at it, remove the single quotes around 'putty': they are both unnecessary and inconsistent with similar constructs throughout Arduino.mk.
Diffstat (limited to 'examples/WebServer/WebServer.ino')
0 files changed, 0 insertions, 0 deletions