Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SW_HTTPServer by
Diff: SW_HTTPServer.cpp
- Revision:
- 30:864843965b40
- Parent:
- 29:00116fc9da74
- Child:
- 31:8f72be717a3c
--- a/SW_HTTPServer.cpp Fri Oct 11 23:47:31 2013 +0000
+++ b/SW_HTTPServer.cpp Sat Oct 12 23:35:51 2013 +0000
@@ -59,7 +59,8 @@
{0,0}
};
-#ifdef DEBUG
+#if 0 && defined(DEBUG)
+// Haven't learned anything from this in a long time, so disabled.
// This uses standard library dynamic memory management, but for an
// embedded system there are alternates that may make better sense -
// search the web for embedded system malloc alternates.
@@ -71,7 +72,7 @@
char HTTPServer::toP(void * x)
{
char * c = (char *) x;
- if (*c >= ' ' && *c < 0x7F)
+ if (*c >= ' ' && *c < 0x7F) // isprint()
return *c;
else
return '.';
