Browse Source

[2.0.x] fix indentations (#10934)

Giuliano 7 years ago
parent
commit
c9d1a620d4
1 changed files with 5 additions and 3 deletions
  1. 5
    3
      Marlin/src/HAL/HAL_AVR/MarlinSerial.cpp

+ 5
- 3
Marlin/src/HAL/HAL_AVR/MarlinSerial.cpp View File

270
       const bool isr_enabled = TEST(M_UCSRxB, M_RXCIEx);
270
       const bool isr_enabled = TEST(M_UCSRxB, M_RXCIEx);
271
       CBI(M_UCSRxB, M_RXCIEx);
271
       CBI(M_UCSRxB, M_RXCIEx);
272
     #endif
272
     #endif
273
-      const int v = rx_buffer.head == rx_buffer.tail ? -1 : rx_buffer.buffer[rx_buffer.tail];
273
+
274
+    const int v = rx_buffer.head == rx_buffer.tail ? -1 : rx_buffer.buffer[rx_buffer.tail];
275
+
274
     #if RX_BUFFER_SIZE > 256
276
     #if RX_BUFFER_SIZE > 256
275
       // Reenable RX interrupts if they were enabled
277
       // Reenable RX interrupts if they were enabled
276
       if (isr_enabled) SBI(M_UCSRxB, M_RXCIEx);
278
       if (isr_enabled) SBI(M_UCSRxB, M_RXCIEx);
343
       CBI(M_UCSRxB, M_RXCIEx);
345
       CBI(M_UCSRxB, M_RXCIEx);
344
     #endif
346
     #endif
345
 
347
 
346
-      const ring_buffer_pos_t h = rx_buffer.head, t = rx_buffer.tail;
348
+    const ring_buffer_pos_t h = rx_buffer.head, t = rx_buffer.tail;
347
 
349
 
348
     #if RX_BUFFER_SIZE > 256
350
     #if RX_BUFFER_SIZE > 256
349
       if (isr_enabled) SBI(M_UCSRxB, M_RXCIEx);
351
       if (isr_enabled) SBI(M_UCSRxB, M_RXCIEx);
358
       CBI(M_UCSRxB, M_RXCIEx);
360
       CBI(M_UCSRxB, M_RXCIEx);
359
     #endif
361
     #endif
360
 
362
 
361
-      rx_buffer.tail = rx_buffer.head;
363
+    rx_buffer.tail = rx_buffer.head;
362
 
364
 
363
     #if RX_BUFFER_SIZE > 256
365
     #if RX_BUFFER_SIZE > 256
364
       if (isr_enabled) SBI(M_UCSRxB, M_RXCIEx);
366
       if (isr_enabled) SBI(M_UCSRxB, M_RXCIEx);

Loading…
Cancel
Save