From 30f8ed2da560034299e81a60d502ca993c72e266 Mon Sep 17 00:00:00 2001
From: Cedric Roux <cedric.roux@eurecom.fr>
Date: Tue, 3 Oct 2017 13:44:00 +0200
Subject: [PATCH] bugfix: fix compilation for T

---
 targets/RT/USER/lte-softmodem.c | 5 ++---
 targets/RT/USER/lte-softmodem.h | 2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/targets/RT/USER/lte-softmodem.c b/targets/RT/USER/lte-softmodem.c
index 5144e911d7b..a8388f817ed 100644
--- a/targets/RT/USER/lte-softmodem.c
+++ b/targets/RT/USER/lte-softmodem.c
@@ -684,9 +684,8 @@ static void get_options(void) {
 }
 
 
-  
 #if T_TRACER
-int T_wait = 1;       /* by default we wait for the tracer */
+int T_nowait = 0;     /* by default we wait for the tracer */
 int T_port = 2021;    /* default port to listen to to wait for the tracer */
 int T_dont_fork = 0;  /* default is to fork, see 'T_init' to understand */
 #endif
@@ -920,7 +919,7 @@ int main( int argc, char **argv )
 
 
 #if T_TRACER
-  T_init(T_port, T_wait, T_dont_fork);
+  T_init(T_port, 1-T_nowait, T_dont_fork);
 #endif
 
 
diff --git a/targets/RT/USER/lte-softmodem.h b/targets/RT/USER/lte-softmodem.h
index 9b62b30e367..28003f75db4 100644
--- a/targets/RT/USER/lte-softmodem.h
+++ b/targets/RT/USER/lte-softmodem.h
@@ -190,7 +190,7 @@ extern int16_t dlsch_demod_shift;
 
 
 extern int T_port;
-extern int T_wait;
+extern int T_nowait;
 extern int T_dont_fork;
 
 /*------------------------------------------------------------------------------------------------------------------------------------------*/
-- 
GitLab