-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] (compiling error with PREHEAT_BEFORE_PROBING) #25270
Comments
What you describe is quite impossible in current bugfix code You say "Enable PREHEAT_BEFORE_PROBING and disable PREHEAT_BEFORE_LEVELING" Code has #if ENABLED(PREHEAT_BEFORE_LEVELING)
int16_t BedLevT = LEVELING_BED_TEMP;
#endif
so the line that error is on is never run when PREHEAT_BEFORE_LEVELING is disabled |
The author's "steps to reproduce" is not consistent with text earlier in the post. The text says "You can't enable both at the same time." but the "steps to reproduce" says to "Enable PREHEAT_BEFORE_PROBING and disable PREHEAT_BEFORE_LEVELING". With Bugfix-2.1.x I get no errors when I "Enable PREHEAT_BEFORE_PROBING and disable PREHEAT_BEFORE_LEVELING". With Bugfix-2.1.x I get the following error when both are enabled: This sanity check was added in PR #20383 in late 2020. The author must be using a really old version of Marlin. I stumbled into a different error while trying to compile the author's config with Bugfix-2.1.x. I'll open a new issue for it. You'll get this error if:
Looks like the #if logic has problems. onDrawZOffset is only used when there is a probe and BABYSTEPPING is enabled. onDrawZOffset is only defined when BABYSTEP_ZPROBE_OFFSET is enable or when there is no probe and BABYSTEPPING is enabled.
|
I'm sorry, I made a mistake, I was using a marlin-2.1.x-folder provided by https://github.com/mriscoc/Ender3V2S1 I thought I was using the official marlin folder. |
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. |
Did you test the latest
bugfix-2.1.x
code?Yes, and the problem still exists.
Bug Description
I want to preheat my bed and hotend before probing with my CRtouch. I uncommented
#define PREHEAT_BEFORE_PROBING
and commented// #define PREHEAT_BEFORE_LEVELING
in Configuration.h . If I then compile with the AutoBuildMarlin-plugin in VSC, I get the following error:I think this is a bug in the code. The recommendation to change to "PROBING_BED_TEMP" is correct. Someone should implement a way for the code to use "LEVELING_BED_TEMP" when using PREHEAT_BEFORE_LEVELING and "PROBING_BED_TEMP" when using PREHEAT_BEFORE_PROBING
This is a bug.
Bug Timeline
I think an old issue, not sure though
Expected behavior
It should have been compiled, but because of a bug my code couldn't compile.
Actual behavior
I got an error saying I should use the variable "PROBING_BED_TEMP" instead of "LEVELING_BED_TEMP"
Steps to Reproduce
Version of Marlin Firmware
2.1.x bugfixes
Printer model
Creality Ender 3 v2
Electronics
Stock
Add-ons
CR-touch
Bed Leveling
ABL Linear grid
Your Slicer
None
Host Software
None
Don't forget to include
Configuration.h
andConfiguration_adv.h
.Additional information & file uploads
Configuration files.zip
Edit: RESOLVED:
I'm sorry, I made a mistake, I was using a marlin-2.1.x-folder provided by https://github.com/mriscoc/Ender3V2S1
I thought I was using the official marlin folder.
There is a bug in mriscoc's fork of the marlin folder. I reported this to mriscoc. This has nothing to do with the official marlin release folder.
The text was updated successfully, but these errors were encountered: