Compilation fix

This commit is contained in:
Bertrand Songis
2015-10-11 23:25:58 +02:00
parent 48a11f63ea
commit 637d20a66d
2 changed files with 7 additions and 2 deletions
+2 -1
View File
@@ -40,9 +40,10 @@
#include <inttypes.h> #include <inttypes.h>
#include "rtc.h" #include "rtc.h"
#include "dump.h" #include "dump.h"
#include "serial.h"
#if defined(CLI) #if defined(CLI)
#include "cli.h" #include "cli.h"
#elif defined(CPUARM)
#include "serial.h"
#endif #endif
#if defined(__cplusplus) #if defined(__cplusplus)
+5 -1
View File
@@ -116,7 +116,11 @@ void serial2Stop()
uint8_t serial2TracesEnabled() uint8_t serial2TracesEnabled()
{ {
return (serial2Mode == 0); #if defined(DEBUG)
return (serial2Mode == UART_MODE_DEBUG);
#else
return false;
#endif
} }
#if !defined(SIMU) #if !defined(SIMU)