changeset 192:cf882d95c799

.../drv_app/sim/sim32.c: white space fixes
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 30 Jan 2021 07:40:33 +0000
parents c1205c437943
children 03ac997d2d43
files src/cs/drivers/drv_app/sim/sim32.c
diffstat 1 files changed, 10 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- 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