Pārlūkot izejas kodu

Misc general spacing cleanup

Scott Lahteine 7 gadus atpakaļ
vecāks
revīzija
9fe7f53216

+ 1
- 1
Marlin/Configuration.h Parādīt failu

@@ -1238,7 +1238,7 @@
1238 1238
  * Enable one of the following items for a slower SPI transfer speed.
1239 1239
  * This may be required to resolve "volume init" errors or LCD issues.
1240 1240
  */
1241
- 
1241
+
1242 1242
 //#define SPI_SPEED SPI_HALF_SPEED
1243 1243
 //#define SPI_SPEED SPI_QUARTER_SPEED
1244 1244
 //#define SPI_SPEED SPI_EIGHTH_SPEED

+ 1
- 1
Marlin/src/HAL/HAL_AVR/MarlinSerial.cpp Parādīt failu

@@ -496,7 +496,7 @@
496 496
     }
497 497
 
498 498
     void MarlinSerial::writeNoHandshake(const uint8_t c) {
499
-      while (!TEST(M_UCSRxA, M_UDREx)) ;
499
+      while (!TEST(M_UCSRxA, M_UDREx)) { /* nada */ }
500 500
       M_UDRx = c;
501 501
     }
502 502
 

+ 4
- 4
Marlin/src/HAL/HAL_AVR/MarlinSerial.h Parādīt failu

@@ -107,15 +107,15 @@
107 107
   #else
108 108
     typedef uint8_t ring_buffer_pos_t;
109 109
   #endif
110
-  
110
+
111 111
   #if ENABLED(SERIAL_STATS_DROPPED_RX)
112 112
     extern uint8_t rx_dropped_bytes;
113 113
   #endif
114 114
 
115 115
   #if ENABLED(SERIAL_STATS_MAX_RX_QUEUED)
116 116
     extern ring_buffer_pos_t rx_max_enqueued;
117
-  #endif  
118
-  
117
+  #endif
118
+
119 119
   class MarlinSerial { //: public Stream
120 120
 
121 121
     public:
@@ -140,7 +140,7 @@
140 140
 
141 141
       #if ENABLED(SERIAL_STATS_MAX_RX_QUEUED)
142 142
         FORCE_INLINE static ring_buffer_pos_t rxMaxEnqueued() { return rx_max_enqueued; }
143
-      #endif  
143
+      #endif
144 144
 
145 145
       static FORCE_INLINE void write(const char* str) { while (*str) write(*str++); }
146 146
       static FORCE_INLINE void write(const uint8_t* buffer, size_t size) { while (size--) write(*buffer++); }

+ 1
- 1
Marlin/src/HAL/HAL_LPC1768/LPC1768_PWM.h Parādīt failu

@@ -431,7 +431,7 @@ HAL_PWM_LPC1768_ISR {
431 431
     ISR_table = active_table;                    // MR0 means new values could have been loaded so set everything
432 432
     if (PWM_table_swap) LPC_PWM1->MCR = LPC1768_PWM_interrupt_mask; // enable new PWM individual channel interrupts
433 433
 
434
-    for (uint8_t i = 0; (i < NUM_PWMS) ; i++) {
434
+    for (uint8_t i = 0; i < NUM_PWMS; i++) {
435 435
       if(ISR_table[i].active_flag && !((ISR_table[i].logical_pin ==  11) ||
436 436
                                        (ISR_table[i].logical_pin ==  4) ||
437 437
                                        (ISR_table[i].logical_pin ==  6)))

+ 1
- 1
Marlin/src/HAL/persistent_store_api.h Parādīt failu

@@ -10,7 +10,7 @@ namespace PersistentStore {
10 10
 bool access_start();
11 11
 bool access_finish();
12 12
 bool write_data(int &pos, const uint8_t *value, uint16_t size, uint16_t *crc);
13
-void read_data(int &pos, uint8_t* value, uint16_t size, uint16_t *crc) ;
13
+void read_data(int &pos, uint8_t* value, uint16_t size, uint16_t *crc);
14 14
 
15 15
 } // PersistentStore
16 16
 } // HAL

+ 2
- 2
frameworks/CMSIS/LPC1768/driver/lpc17xx_systick.c Parādīt failu

@@ -73,7 +73,7 @@ void SYSTICK_InternalInit(uint32_t time)
73 73
 	 * 1/SystemCoreClock * (2^24) * 1000 (ms)
74 74
 	 */
75 75
 	//check time value is available or not
76
-	maxtime = (1<<24)/(SystemCoreClock / 1000) ;
76
+	maxtime = (1<<24)/(SystemCoreClock / 1000);
77 77
 	if(time > maxtime)
78 78
 		//Error loop
79 79
 		while(1);
@@ -105,7 +105,7 @@ void SYSTICK_ExternalInit(uint32_t freq, uint32_t time)
105 105
 	 * 1/freq * (2^24) * 1000 (ms)
106 106
 	 */
107 107
 	//check time value is available or not
108
-	maxtime = (1<<24)/(freq / 1000) ;
108
+	maxtime = (1<<24)/(freq / 1000);
109 109
 	if (time>maxtime)
110 110
 		//Error Loop
111 111
 		while(1);

Notiek ielāde…
Atcelt
Saglabāt