From c9d1a620d43766e36e8d8860e4d7a225b37f4246 Mon Sep 17 00:00:00 2001 From: Giuliano <3684609+GMagician@users.noreply.github.com> Date: Tue, 5 Jun 2018 09:03:26 +0200 Subject: [PATCH] [2.0.x] fix indentations (#10934) --- Marlin/src/HAL/HAL_AVR/MarlinSerial.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Marlin/src/HAL/HAL_AVR/MarlinSerial.cpp b/Marlin/src/HAL/HAL_AVR/MarlinSerial.cpp index 6568b08396..5a2a767384 100644 --- a/Marlin/src/HAL/HAL_AVR/MarlinSerial.cpp +++ b/Marlin/src/HAL/HAL_AVR/MarlinSerial.cpp @@ -270,7 +270,9 @@ const bool isr_enabled = TEST(M_UCSRxB, M_RXCIEx); CBI(M_UCSRxB, M_RXCIEx); #endif - const int v = rx_buffer.head == rx_buffer.tail ? -1 : rx_buffer.buffer[rx_buffer.tail]; + + const int v = rx_buffer.head == rx_buffer.tail ? -1 : rx_buffer.buffer[rx_buffer.tail]; + #if RX_BUFFER_SIZE > 256 // Reenable RX interrupts if they were enabled if (isr_enabled) SBI(M_UCSRxB, M_RXCIEx); @@ -343,7 +345,7 @@ CBI(M_UCSRxB, M_RXCIEx); #endif - const ring_buffer_pos_t h = rx_buffer.head, t = rx_buffer.tail; + const ring_buffer_pos_t h = rx_buffer.head, t = rx_buffer.tail; #if RX_BUFFER_SIZE > 256 if (isr_enabled) SBI(M_UCSRxB, M_RXCIEx); @@ -358,7 +360,7 @@ CBI(M_UCSRxB, M_RXCIEx); #endif - rx_buffer.tail = rx_buffer.head; + rx_buffer.tail = rx_buffer.head; #if RX_BUFFER_SIZE > 256 if (isr_enabled) SBI(M_UCSRxB, M_RXCIEx);