From: klueska Date: Wed, 23 Jul 2008 01:46:43 +0000 (+0000) Subject: Force printf messages to 28 bytes regardless of what TOSH_DATA_LENGTH is set to X-Git-Tag: release_tinyos_2_1_0_0~45 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=433e999151e4d22a459aaf72d4fc51f17e85b528 Force printf messages to 28 bytes regardless of what TOSH_DATA_LENGTH is set to --- diff --git a/tos/lib/printf/PrintfC.nc b/tos/lib/printf/PrintfC.nc index 451368c7..f55dfd4d 100644 --- a/tos/lib/printf/PrintfC.nc +++ b/tos/lib/printf/PrintfC.nc @@ -63,6 +63,6 @@ implementation { PrintfP.Queue -> QueueC; PrintfP.AMSend -> SerialAMSenderC; PrintfP.Packet -> SerialAMSenderC; - PrintfP.Leds -> LedsC; + //PrintfP.Leds -> LedsC; } diff --git a/tos/lib/printf/printf.h b/tos/lib/printf/printf.h index 32d7d762..a8cf2619 100644 --- a/tos/lib/printf/printf.h +++ b/tos/lib/printf/printf.h @@ -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 {