-
-
Notifications
You must be signed in to change notification settings - Fork 288
Description
Did you test the latest bugfix-2.0.x code?
Yes, and the problem still exists.
Bug Description
Hello,
I found a compilation bug in the Mks-Robin-Nano-Marlin2.0-Firmware when configuring it for the MKS Robin Nano V3.0.
Bug Timeline
No response
Expected behavior
No response
Actual behavior
No response
Steps to Reproduce
- Use the mks_robin_nano_v3_usb_flash_drive environment in platformio.ini.
2 In Configuration.h , enable #define FILAMENT_RUNOUT_SENSOR.
3 In Configuration_adv.h , enable #define ADVANCED_PAUSE_FEATURE (which is required for the M600 script).
4 Compile the firmware.
Actual Behavior
The compilation fails with an error in Marlin/src/lcd/extui/mks_ui/draw_dialog.cpp .
The error message is:
error: 'pause_menu_response' was not declared in this scope; did you mean 'pause_menu_disp'?
The Fix
This appears to be a typo in the source code. The variable pause_menu_response is used, but the correct variable (as suggested by the compiler) is pause_menu_disp.
To fix this, I replaced all instances of pause_menu_response with pause_menu_disp in the file:
Marlin/src/lcd/extui/mks_ui/draw_dialog.cpp
After making this change, the firmware compiles successfully.
Thank you!
Version of Marlin Firmware
Marlin 2.0.x
Printer model
No response
Electronics
No response
Add-ons
No response
Bed Leveling
None
Your Slicer
None
Host Software
None
Additional information & file uploads
No response