From 84697f411109d1c8de55746b564f8d96f594bfa0 Mon Sep 17 00:00:00 2001 From: DrZiplok Date: Mon, 18 Oct 2010 04:40:33 +0000 Subject: [PATCH] Fix ::printf_P to transmit to the correct interface. Fixes the XBee test. git-svn-id: https://arducopter.googlecode.com/svn/trunk@685 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- libraries/FastSerial/FastSerial.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/FastSerial/FastSerial.cpp b/libraries/FastSerial/FastSerial.cpp index f687525232..d88d4cc108 100644 --- a/libraries/FastSerial/FastSerial.cpp +++ b/libraries/FastSerial/FastSerial.cpp @@ -305,7 +305,7 @@ FastSerial::printf_P(const char *fmt, ...) int i; va_start(ap, fmt); - i = vfprintf_P(stdout, fmt, ap); + i = vfprintf_P(&_fd, fmt, ap); va_end(ap); return(i);