]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Force printf messages to 28 bytes regardless of what TOSH_DATA_LENGTH is set to
authorklueska <klueska>
Wed, 23 Jul 2008 01:46:43 +0000 (01:46 +0000)
committerklueska <klueska>
Wed, 23 Jul 2008 01:46:43 +0000 (01:46 +0000)
tos/lib/printf/PrintfC.nc
tos/lib/printf/printf.h

index 451368c76263ead75767d832fcfd9dcde24ba0c7..f55dfd4d3557f41eade39eee0723a94e99565f6f 100644 (file)
@@ -63,6 +63,6 @@ implementation {
   PrintfP.Queue -> QueueC;
   PrintfP.AMSend -> SerialAMSenderC;
   PrintfP.Packet -> SerialAMSenderC;
-  PrintfP.Leds -> LedsC;
+  //PrintfP.Leds -> LedsC;
 }
 
index 32d7d7628a5bf33123be9f496c0b10c1a40c603b..a8cf26193433754283cf7f119539145d76e5e1ff 100644 (file)
@@ -51,8 +51,9 @@
 #include "message.h"
 int printfflush();
 
+#define PRINTF_MSG_LENGTH      28
 typedef nx_struct printf_msg {
-  nx_uint8_t buffer[TOSH_DATA_LENGTH];
+  nx_uint8_t buffer[PRINTF_MSG_LENGTH];
 } printf_msg_t;
 
 enum {