Skip to content

Commit 53f9624

Browse files
brupjeAndy-Big
authored andcommitted
🩹 Conditional u8g for SAMD21 (MarlinFirmware#25947)
1 parent 30c8f27 commit 53f9624

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Marlin/src/HAL/SAMD21/u8g/u8g_com_HAL_samd21_shared_hw_spi.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@
6060

6161
#ifdef __SAMD21__
6262

63+
#include "../../../inc/MarlinConfigPre.h"
64+
65+
#if HAS_MARLINUI_U8GLIB
66+
6367
#include <U8glib-HAL.h>
6468
#include "SPI.h"
6569

@@ -151,4 +155,6 @@ uint8_t u8g_com_samd21_st7920_hw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val
151155
return 1;
152156
}
153157

158+
#endif // HAS_MARLINUI_U8GLIB
159+
154160
#endif // __SAMD21__

0 commit comments

Comments
 (0)