From 34b076f7afaf996b1a45e1be96f265cbc2202965 Mon Sep 17 00:00:00 2001 From: 57ca2b96b7444cb986b2d6cf51d25ffd86c57743 Date: Mon, 23 Oct 2017 17:37:29 -0400 Subject: [PATCH] Enclosed naked statements with braces to avoid C compliler misleading-indentation 'guard' warning. --- armsrc/felica.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/armsrc/felica.c b/armsrc/felica.c index d06b4eeb0..91927a438 100644 --- a/armsrc/felica.c +++ b/armsrc/felica.c @@ -395,8 +395,9 @@ static void sendNFCToFPGA(uint8_t * frame, int len, uint32_t waitTill, uint8_t p AT91C_BASE_SSC->SSC_THR = 0x00; c++; } - if (AT91C_BASE_SSC->SSC_SR & (AT91C_SSC_RXRDY)) + if (AT91C_BASE_SSC->SSC_SR & (AT91C_SSC_RXRDY)) { b = (uint16_t)(AT91C_BASE_SSC->SSC_RHR); (void)b; + } } for(c = 0; c < len;) { @@ -404,8 +405,9 @@ static void sendNFCToFPGA(uint8_t * frame, int len, uint32_t waitTill, uint8_t p AT91C_BASE_SSC->SSC_THR = frame[c]; c++; } - if (AT91C_BASE_SSC->SSC_SR & (AT91C_SSC_RXRDY)) + if (AT91C_BASE_SSC->SSC_SR & (AT91C_SSC_RXRDY)) { b = (uint16_t)(AT91C_BASE_SSC->SSC_RHR); (void)b; + } } while(!(AT91C_BASE_SSC->SSC_SR & (AT91C_SSC_TXRDY))) {}; @@ -589,8 +591,9 @@ void HfDumpFelicaLiteS() { if(!crc_tabccitt_init) init_crcccitt_tab(); - if(!manch_tbl_fill) + if(!manch_tbl_fill) { fillManch(); + } ResetNFCFrame();