# HG changeset patch # User David Douard # Date 1476215187 -7200 # Node ID 0fdeed7c083e80a27197cd63505b2e74a67803cd # Parent 38cd6267c919b5659b0462fd293e961a4c0a08dc make USB (debug) serial console depend only on HAVE_PC compile variable diff -r 38cd6267c919 -r 0fdeed7c083e src/main.cpp --- a/src/main.cpp Tue Oct 11 21:45:22 2016 +0200 +++ b/src/main.cpp Tue Oct 11 21:46:27 2016 +0200 @@ -26,7 +26,6 @@ // misc #define DBGPIN PA_12 - #elif defined STM32F446xx // display #define DSP_MOSI PB_15 @@ -43,11 +42,11 @@ // misc #define DBGPIN PC_0 -#define HAS_PC -Serial pc(USBTX, USBRX); - #endif +#ifdef HAVE_PC +Serial pc(USBTX, USBRX); +#endif SSD1322 *dsp;//(10000000, DSP_MOSI, DSP_MISO, DSP_SCLK, DSP_CS, DSP_RST, DSP_DC, "SSD1322"); HPSerial *hp; //(HP_RX, HP_TX);