]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Allow PRINTF_MSG_LENGTH to be overwritten by users.
authorrazvanm <razvanm>
Mon, 29 Dec 2008 23:49:31 +0000 (23:49 +0000)
committerrazvanm <razvanm>
Mon, 29 Dec 2008 23:49:31 +0000 (23:49 +0000)
tos/lib/printf/printf.h

index a8cf26193433754283cf7f119539145d76e5e1ff..605162c91dc62ebd26a29a8fa1b78a5ae4a407e3 100644 (file)
@@ -51,7 +51,9 @@
 #include "message.h"
 int printfflush();
 
+#ifndef PRINTF_MSG_LENGTH
 #define PRINTF_MSG_LENGTH      28
+#endif
 typedef nx_struct printf_msg {
   nx_uint8_t buffer[PRINTF_MSG_LENGTH];
 } printf_msg_t;