chg: and wrap FPC code with defines..

This commit is contained in:
Chris 2018-07-04 13:05:23 +02:00
parent a32052b5e6
commit 9571cf1d13

View file

@ -32,7 +32,6 @@
#include "i2c.h" #include "i2c.h"
#endif #endif
//============================================================================= //=============================================================================
// A buffer where we can queue things up to be sent through the FPGA, for // A buffer where we can queue things up to be sent through the FPGA, for
// any purpose (fake tag, as reader, whatever). We go MSB first, since that // any purpose (fake tag, as reader, whatever). We go MSB first, since that
@ -1296,11 +1295,12 @@ void UsbPacketReceived(uint8_t *packet, int len) {
break; break;
case CMD_PING: case CMD_PING:
cmd_send(CMD_ACK,0,0,0,0,0); cmd_send(CMD_ACK,0,0,0,0,0);
#ifdef WITH_FPC
char header[] = {"*** Iceman Usart ***"}; char header[] = {"*** Iceman Usart ***"};
uint32_t res = usart_writebuffer((uint8_t *)header, sizeof(header), 100000); uint32_t res = usart_writebuffer((uint8_t *)header, sizeof(header), 100000);
Dbprintf("after sending FPC [%x]", res); Dbprintf("after sending FPC [%x]", res);
#endif
break; break;
#ifdef WITH_LCD #ifdef WITH_LCD
case CMD_LCD_RESET: case CMD_LCD_RESET: