Skip to content

Commit

Permalink
🐛 Add 'static' to fix 'duplicates' (#22826)
Browse files Browse the repository at this point in the history
  • Loading branch information
swills authored and thinkyhead committed Oct 3, 2021
1 parent bcd2a48 commit dc4d216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/HAL/AVR/u8g_com_HAL_AVR_sw_spi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@

#include <U8glib-HAL.h>

uint8_t u8g_bitData, u8g_bitNotData, u8g_bitClock, u8g_bitNotClock;
volatile uint8_t *u8g_outData, *u8g_outClock;
static uint8_t u8g_bitData, u8g_bitNotData, u8g_bitClock, u8g_bitNotClock;
static volatile uint8_t *u8g_outData, *u8g_outClock;

static void u8g_com_arduino_init_shift_out(uint8_t dataPin, uint8_t clockPin) {
u8g_outData = portOutputRegister(digitalPinToPort(dataPin));
Expand Down

0 comments on commit dc4d216

Please sign in to comment.