Browse Source

🐛 Add 'static' to fix 'duplicates' (#22826)

Steve Wills 3 years ago
parent
commit
e1ac3ede0d
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/HAL/AVR/u8g_com_HAL_AVR_sw_spi.cpp

+ 2
- 2
Marlin/src/HAL/AVR/u8g_com_HAL_AVR_sw_spi.cpp View File

64
 
64
 
65
 #include <U8glib-HAL.h>
65
 #include <U8glib-HAL.h>
66
 
66
 
67
-uint8_t u8g_bitData, u8g_bitNotData, u8g_bitClock, u8g_bitNotClock;
68
-volatile uint8_t *u8g_outData, *u8g_outClock;
67
+static uint8_t u8g_bitData, u8g_bitNotData, u8g_bitClock, u8g_bitNotClock;
68
+static volatile uint8_t *u8g_outData, *u8g_outClock;
69
 
69
 
70
 static void u8g_com_arduino_init_shift_out(uint8_t dataPin, uint8_t clockPin) {
70
 static void u8g_com_arduino_init_shift_out(uint8_t dataPin, uint8_t clockPin) {
71
   u8g_outData = portOutputRegister(digitalPinToPort(dataPin));
71
   u8g_outData = portOutputRegister(digitalPinToPort(dataPin));

Loading…
Cancel
Save