From 74be625d9eadd2e3f214f4823ba871861f414ba3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sergi=20Hern=C3=A1ndez?= <shernand@iri.upc.edu>
Date: Wed, 24 Aug 2016 23:42:36 +0200
Subject: [PATCH] Removed the __REAL__ macro from the cm510_printf function to
 allow communication with an external device using the rserial port in the
 real robot.

---
 communications/src/serial_console.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/communications/src/serial_console.c b/communications/src/serial_console.c
index 97dd048..9f53a7a 100644
--- a/communications/src/serial_console.c
+++ b/communications/src/serial_console.c
@@ -147,9 +147,6 @@ uint8_t serial_console_get_num_data(void)
 
 int cm510_printf(const char *fmt, ...)
 {
-  #ifdef __REAL__
-  return 0;
-  #else
   va_list ap;
   int i;
 
@@ -157,7 +154,6 @@ int cm510_printf(const char *fmt, ...)
   i = vfprintf(stdout, fmt, ap);
   va_end(ap);
   return i;
-  #endif
 }
 
 int cm510_scanf(const char *fmt, ...)
-- 
GitLab