]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
cahnge to cutoff for flushing at half the buffer size
authorklueska <klueska>
Mon, 9 Mar 2009 18:15:49 +0000 (18:15 +0000)
committerklueska <klueska>
Mon, 9 Mar 2009 18:15:49 +0000 (18:15 +0000)
tos/lib/printf/PrintfP.nc

index 0ea9b512861ef2d1d128494f97124f7c5d2457e9..c1ea229b08ef64439f2358dfbfb13cc966fe2359 100644 (file)
@@ -167,7 +167,7 @@ implementation {
 #ifdef _H_atmega128hardware_H
   int uart_putchar(char c, FILE *stream) __attribute__((noinline)) @C() @spontaneous() {
 #endif
-    if((state == S_STARTED) && (call Queue.size() >= 5*sizeof(printf_msg_t))) {
+    if((state == S_STARTED) && (call Queue.size() >= ((PRINTF_BUFFER_SIZE)/2))) {
       state = S_FLUSHING;
       sendNext();
     }