Wrap the whole debug_over_spi.[ch] files into #ifdef DEBUG_OVER_SPI to silence compiler warnings when it's not defined.

This commit is contained in:
László Monda
2017-11-09 01:33:23 +01:00
parent e5865009f5
commit f1058294a6
2 changed files with 11 additions and 10 deletions

View File

@@ -1,3 +1,5 @@
#ifdef DEBUG_OVER_SPI
#ifndef __DEBUG_OVER_SPI_H__
#define __DEBUG_OVER_SPI_H__
@@ -25,3 +27,8 @@
void DebugOverSpi_Send(uint8_t *tx, uint8_t len);
#endif
#else
#define DebugOverSpi_Init()
#define DebugOverSpi_Send(tx, len)
#endif