Open gfacek opened 1 year ago
Found a solution:
in Marlin/src/pins/stm32f4/pins_BTT_OCTOPUS_V1_common.h there is this part:
#if HAS_MARLINUI_U8GLIB
#ifndef BOARD_ST7920_DELAY_1
#define BOARD_ST7920_DELAY_1 DELAY_NS(120) // DELAY_NS(96)
#endif
#ifndef BOARD_ST7920_DELAY_2
#define BOARD_ST7920_DELAY_2 DELAY_NS(80) // DELAY_NS(48)
#endif
#ifndef BOARD_ST7920_DELAY_3
#define BOARD_ST7920_DELAY_3 DELAY_NS(580) // DELAY_NS(600)
#endif
#endif
I had to change it to:
#if HAS_MARLINUI_U8GLIB
#ifndef BOARD_ST7920_DELAY_1
#define BOARD_ST7920_DELAY_1 120 // DELAY_NS(96)
#endif
#ifndef BOARD_ST7920_DELAY_2
#define BOARD_ST7920_DELAY_2 80 // DELAY_NS(48)
#endif
#ifndef BOARD_ST7920_DELAY_3
#define BOARD_ST7920_DELAY_3 580 // DELAY_NS(600)
#endif
#endif
Great work! This one has stumped us. I'm keeping this bug open until it can be implemented in our new Marlin 2.1x build. Please join us in Discord if you haven't already: https://discord.gg/w8gMzQq8Bp
Glad I could help :) And thanks for the Discord invite!
Bug Description
I tried to compile marlin-lux-marlin-2.0.9.2 with the following settings in luxuri.ini:
The compilation failed with the following errors:
Marlin\src\lcd\dogm\ultralcd_st7920_u8glib_rrd_AVR.cpp:49:29: error: token "{" is not valid in preprocessor expressions Marlin\src\lcd\dogm\ultralcd_st7920_u8glib_rrd_AVR.cpp:65:29: error: token "{" is not valid in preprocessor expressions Marlin\src\lcd\dogm\ultralcd_st7920_u8glib_rrd_AVR.cpp:81:29: error: token "{" is not valid in preprocessor expressions
Bug Timeline
No response
Expected behavior
I expected to compile the firmware.bin regarding the selected settings.
Actual behavior
The firmware-file did not compile. Instead I got the following error:
Marlin\src\lcd\dogm\ultralcd_st7920_u8glib_rrd_AVR.cpp:49:29: error: token "{" is not valid in preprocessor expressions Marlin\src\lcd\dogm\ultralcd_st7920_u8glib_rrd_AVR.cpp:65:29: error: token "{" is not valid in preprocessor expressions Marlin\src\lcd\dogm\ultralcd_st7920_u8glib_rrd_AVR.cpp:81:29: error: token "{" is not valid in preprocessor expressions
Steps to Reproduce
default_envs = D2P_OCTOPUS_Driver2209BTT_OpticalY_BLTouch_LCD_BTT_TFT
Version of Marlin Firmware
marlin-lux-2.0.9.2
Printer model
Tenlog Hands 2
Electronics
BTT Octopus Board and BTT TFT35
Add-ons
No response
Bed Leveling
None
Your Slicer
Cura
Host Software
OctoPrint
Additional information & file uploads
No response