Browse Source

STM32F1: Fix misleading indent / nullptr on FSMC (#16431)

Tanguy Pruvot 4 years ago
parent
commit
1ea529b9c1
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      Marlin/src/HAL/HAL_STM32F1/dogm/u8g_com_stm32duino_fsmc.cpp

+ 2
- 1
Marlin/src/HAL/HAL_STM32F1/dogm/u8g_com_stm32duino_fsmc.cpp View File

@@ -80,10 +80,11 @@ uint8_t u8g_com_stm32duino_fsmc_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, voi
80 80
       LCD_IO_Init(u8g->pin_list[U8G_PI_CS], u8g->pin_list[U8G_PI_A0]);
81 81
       u8g_Delay(50);
82 82
 
83
-      if (arg_ptr)
83
+      if (arg_ptr) {
84 84
         *((uint32_t *)arg_ptr) = LCD_IO_ReadData(0x0000);
85 85
         if (*((uint32_t *)arg_ptr) == 0)
86 86
           *((uint32_t *)arg_ptr) = (LCD_READ_ID << 24) | LCD_IO_ReadData(LCD_READ_ID, 3);
87
+      }
87 88
       isCommand = 0;
88 89
       break;
89 90
 

Loading…
Cancel
Save