Closed KrX3D closed 4 years ago
In Marlin/src/lcd/ultralcd.h is is
typedef struct {
TERN_(HAS_HOTEND, uint16_t hotend_temp);
TERN_(HAS_HEATED_BED, uint16_t bed_temp );
TERN_(HAS_FAN, uint16_t fan_speed );
} preheat_t;
fan_speed is conditional on HAS_FAN, and BOARD_SANGUINOLOLU_12 does not have any fans.
issue is in menu_configuration.cpp presuming there is a fan.
If you replace the following in menu_configuration.cpp
editable.uint8 = uint8_t(ui.material_preset[m].fan_speed);
EDIT_ITEM_N(percent, m, MSG_FAN_SPEED, &editable.uint8, 0, 255, []{ ui.material_preset[MenuItemBase::itemIndex].fan_speed = editable.uint8; });
with this
#if HAS_FAN
editable.uint8 = uint8_t(ui.material_preset[m].fan_speed);
EDIT_ITEM_N(percent, m, MSG_FAN_SPEED, &editable.uint8, 0, 255, []{ ui.material_preset[MenuItemBase::itemIndex].fan_speed = editable.uint8; });
#endif
It compiles, but I haven't had a chance to test beyond compiling.
hi,
ok that worked, my display is also working.
About what fan di you speak, the hotend fan? i think its directly connected to 12v/5v and never got a problem.
so will this fix be added in the next version of marlin, do i dont need to think about changing it each time ;)
On old boards, like this, it doesn't have software controlled fans. But the lcd code assumed that there was a software controlled fan. Thus it failed to compile. Fans directly on power don't count as firmware can't see or do anything with them.
It will get added to bugfix, as soon as I (or someone else) gets a chance to do so. Just leave issue open for now thanks.
Fix has been applied to bugfix. Closing issue.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Bug Description
I downloaded the newest version of marlin from today (Marlin-bugfix-2.0.x). When i do my changes in the Config file but dont enable my LCD i can compile it. But when i uncomment "REPRAP_DISCOUNT_SMART_CONTROLLER" i get this error:
it works fine with the stable version of marlin.
My Board is a sanguinololu 1284 (not the P version) 16Mhz
My Configurations
Marlin.zip.
Steps to Reproduce
Expected behavior: i expect it to compile successfully ;)
Actual behavior: Gettting error shown above when compiling
Additional Information