From 1b45bd4ee170cd2afb136b11e9ed7725d4d30416 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Thu, 28 Mar 2013 00:15:17 +0100 Subject: [PATCH] SPI: remove dead code --- libnfc/drivers/pn532_spi.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libnfc/drivers/pn532_spi.c b/libnfc/drivers/pn532_spi.c index 1202868..639f08d 100644 --- a/libnfc/drivers/pn532_spi.c +++ b/libnfc/drivers/pn532_spi.c @@ -100,8 +100,6 @@ pn532_spi_scan(const nfc_context *context, nfc_connstring connstrings[], const s log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_DEBUG, "Trying to find PN532 device on SPI port: %s at %d Hz.", acPort, PN532_SPI_DEFAULT_SPEED); if ((sp != INVALID_SPI_PORT) && (sp != CLAIMED_SPI_PORT)) { - // We need to flush input to be sure first reply does not comes from older byte transceive - //~ spi_flush_input(sp); // Serial port claimed but we need to check if a PN532_SPI is opened. spi_set_speed(sp, PN532_SPI_DEFAULT_SPEED); spi_set_mode(sp, PN532_SPI_MODE); @@ -555,8 +553,6 @@ static int pn532_spi_send(nfc_device *pnd, const uint8_t *pbtData, const size_t szData, int timeout) { int res = 0; - // Before sending anything, we need to discard from any junk bytes - //~ spi_flush_input(DRIVER_DATA(pnd)->port); switch (CHIP_DATA(pnd)->power_mode) { case LOWVBAT: {