Browse Source

STM32F1: AUTO_BED_LEVELING_UBL build fixes (#15240)

pull/1/head
Tanguy Pruvot 5 years ago
committed by Scott Lahteine
parent
commit
2435c6082a
  1. 3
      Marlin/src/HAL/shared/Marduino.h
  2. 4
      Marlin/src/core/serial.h

3
Marlin/src/HAL/shared/Marduino.h

@ -58,6 +58,9 @@
//#define strchr_P(s,c) strchr(s,c) //#define strchr_P(s,c) strchr(s,c)
#endif #endif
#ifndef snprintf_P
#define snprintf_P snprintf
#endif
#ifndef vsnprintf_P #ifndef vsnprintf_P
#define vsnprintf_P vsnprintf #define vsnprintf_P vsnprintf
#endif #endif

4
Marlin/src/core/serial.h

@ -75,7 +75,9 @@ extern uint8_t marlin_debug_flags;
#define SERIAL_PRINTF(V...) SERIAL_OUT(printf, V) #define SERIAL_PRINTF(V...) SERIAL_OUT(printf, V)
#define SERIAL_FLUSH() SERIAL_OUT(flush) #define SERIAL_FLUSH() SERIAL_OUT(flush)
#if TX_BUFFER_SIZE > 0 #ifdef __STM32F1__
#define SERIAL_FLUSHTX() SERIAL_OUT(flush)
#elif TX_BUFFER_SIZE > 0
#define SERIAL_FLUSHTX() SERIAL_OUT(flushTX) #define SERIAL_FLUSHTX() SERIAL_OUT(flushTX)
#else #else
#define SERIAL_FLUSHTX() #define SERIAL_FLUSHTX()

Loading…
Cancel
Save