MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.28k stars 19.24k forks source link

[BUG] error: 'STATUS_BED_X' was not declared in this scope; did you mean 'STATUS_FAN_X' when defining STATUS_HEAT_PERCENT #18666

Closed elpeter25 closed 4 years ago

elpeter25 commented 4 years ago

Marlin Version: 2.0.5.4

Bug Description

When uncommenting to define STATUS_HEAT_PERCENT following error appears at compiling time:

Marlin\src\lcd\dogm\status_screen_DOGM.cpp: In function 'void _draw_bed_status(bool)':
Marlin\src\lcd\dogm\status_screen_DOGM.cpp:253:30: error: 'STATUS_BED_X' was not declared in this scope; did you mean 'STATUS_FAN_X'?
  253 |           const uint8_t bx = STATUS_BED_X + STATUS_BED_WIDTH;
      |                              ^~~~~~~~~~~~
      |                              STATUS_FAN_X

Compiling .pio\build\LPC1768\src\src\lcd\extui\lib\dgus\DGUSDisplay.cpp.o
*** [.pio\build\LPC1768\src\src\lcd\dogm\status_screen_DOGM.cpp.o] Error 1

My Configurations

MarlinBug.zip

Steps to Reproduce

  1. [First Step] Uncomment line 1287 in Configuration_adv.h: //#define STATUS_HEAT_PERCENT // Show heating in a progress bar
  2. [Second Step] Compile

Expected behavior: Compilation OK

Actual behavior: Compliation error

Thanks so much for making Marlin possible :)

GhostlyCrowd commented 4 years ago

I use #define STATUS_HEAT_PERCENT on the latest bug fix and this is not an issue, can you try the latest bug fix? if it fixes the issue, this can be closed if it is still there for you, post your configs for the latest bug fix.

GMagician commented 4 years ago

Use bugfix but you have to update your configuration files.

Not sure if SPEAKER is a valid option for your cnf but it seems it generate a compiler error

thinkyhead commented 4 years ago

This Issue Queue is for Marlin bug reports and development-related issues, and we prefer not to handle user-support questions here. (As noted on this page.) For best results getting help with configuration and troubleshooting, please use the following resources:

After seeking help from the community, if the consensus points to a bug in Marlin, then you should post a bug report.

github-actions[bot] commented 4 years ago

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.