# HG changeset patch # User Mychaela Falconia # Date 1611992433 0 # Node ID cf882d95c7999476dc866ea0711ea427c3e65fcd # Parent c1205c437943de33ebefdd7dcae8a8c8f54a2af6 .../drv_app/sim/sim32.c: white space fixes diff -r c1205c437943 -r cf882d95c799 src/cs/drivers/drv_app/sim/sim32.c --- a/src/cs/drivers/drv_app/sim/sim32.c Sat Jan 30 07:34:00 2021 +0000 +++ b/src/cs/drivers/drv_app/sim/sim32.c Sat Jan 30 07:40:33 2021 +0000 @@ -47,7 +47,6 @@ volatile SYS_UWORD8 nack; volatile SYS_UWORD8 nack1; - SIM_PORT *p; p = &(Sim[0]); @@ -63,7 +62,7 @@ #ifdef SIM_DEBUG_TRACE if ((IQ_FrameCount - SIM_dbg_local_count) > SIM_dbg_tdma_diff) { SIM_dbg_tdma_diff = IQ_FrameCount - SIM_dbg_local_count; - } + } SIM_dbg_local_count = IQ_FrameCount; #endif @@ -124,10 +123,10 @@ } else { - if (p->rx_index == p->expected_data) - { - p->moderx = 5; - } + if (p->rx_index == p->expected_data) + { + p->moderx = 5; + } } break; @@ -147,7 +146,6 @@ SIM_dbg_null[1]++; #endif } - break; case 4: //mode reception char by char. reception of data @@ -163,10 +161,10 @@ } else { - if (p->rx_index == p->expected_data) - { - p->moderx = 5; - } + if (p->rx_index == p->expected_data) + { + p->moderx = 5; + } } break; @@ -182,8 +180,6 @@ SIM_dbg_null[2]++; #endif } - - break; case 6: //give the acknowledge char @@ -222,7 +218,6 @@ // check the transmit parity stat = p->c->stat; - if ((stat & SIM_STAT_TXPAR) || ((p->conf1 & SIM_CONF1_CHKPAR) == 0)) //parity disable { if (p->xOut != (p->xIn - 1)) //if only one char transmitted (already transmitted) @@ -248,14 +243,12 @@ p->c->tx = *(p->xOut); // transmit same char p->txParityErr++; // count number of transmit parity errors } - } // Handle errors if ((it & SIM_IT_ITOV) && !(p->c->maskit & SIM_MASK_OV)) { p->errorSIM = SIM_ERR_OVF; - } if ((it & SIM_IT_WT) && !(p->c->maskit & SIM_MASK_WT)) { @@ -310,7 +303,7 @@ p->errorSIM = SIM_ERR_NOCARD; } } -} + } #endif