Skip to content
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] Temperature::preheat_end_ms_hotend missing in 2.1.2.2 #26802

Closed
1 task done
Fiamat opened this issue Feb 18, 2024 · 6 comments
Closed
1 task done

[BUG] Temperature::preheat_end_ms_hotend missing in 2.1.2.2 #26802

Fiamat opened this issue Feb 18, 2024 · 6 comments
Labels
Bug: Confirmed ! Fix Included A fix is included in the description

Comments

@Fiamat
Copy link

Fiamat commented Feb 18, 2024

Did you test the latest bugfix-2.1.x code?

Yes, and the problem still exists.

Bug Description

After setting MILLISECONDS_PREHEAT_TIME to any positive value the temperature.cpp checks for nonexisting member preheat_end_ms_hotend in Temperature class. Indeed temperature.h doesn't declare such variable. I see that bugfix branch already brought back this variable, but official .zip with Marlin 2.1.2.2 (https://marlinfw.org/meta/download/) contains this bug.

Bug Timeline

No response

Expected behavior

No response

Actual behavior

During build process a following error is thrown:

Marlin\src\module\temperature.cpp:598:12: error: 'millis_t Temperature::preheat_end_ms_hotend [1]' is not a static data member of 'class Temperature'

Steps to Reproduce

  1. Uncomment MILLISECONDS_PREHEAT_TIME in Configuration_adv.h and set it to any positive value
  2. Try building the software

My Configuration(_adv).h:
Marlin.zip

Version of Marlin Firmware

2.1.2.2 (official .zip)

Printer model

Ender 3 v2

Electronics

Bigtreetech SKR Mini E3 v3

LCD/Controller

StockEnder 3 v2

Other add-ons

BL-Touch

Bed Leveling

UBL Bilinear mesh

Your Slicer

None

Host Software

None

Don't forget to include

  • A ZIP file containing your Configuration.h and Configuration_adv.h.

Additional information & file uploads

No response

@ellensp
Copy link
Contributor

ellensp commented Feb 19, 2024

As a work around In Marlin/src/module/temperature.cpp

Find

#if MILLISECONDS_PREHEAT_TIME > 0
  millis_t Temperature::preheat_end_ms_hotend[HOTENDS]; // = { 0 };
#endif

and replace it with

#if MILLISECONDS_PREHEAT_TIME > 0
  millis_t Temperature::preheat_end_time[HOTENDS] = { 0 };
#endif

@Fiamat
Copy link
Author

Fiamat commented Feb 19, 2024

As a work around In Marlin/src/module/temperature.cpp

Find

#if MILLISECONDS_PREHEAT_TIME > 0
  millis_t Temperature::preheat_end_ms_hotend[HOTENDS]; // = { 0 };
#endif

and replace it with

#if MILLISECONDS_PREHEAT_TIME > 0
  millis_t Temperature::preheat_end_time[HOTENDS] = { 0 };
#endif

I use temperature sensor "66 : Trianglelab T-D500 500°C High Temperature Thermistor" which has a long dead zone around room temperature. Event the Marlin itself throws warning when MILLISECONDS_PREHEAT_TIME is below 30e3 ms with this sensor. I guess that the proposed workaround can cause problems with temperature control in my setup (?).

@ellensp
Copy link
Contributor

ellensp commented Feb 19, 2024

Marlin has this code

#if ANY_E_SENSOR_IS(66)
...(skipped code)... 
 #if MAX_CONSECUTIVE_LOW_TEMPERATURE_ERROR_ALLOWED < 5
    #error "Thermistor 66 requires MAX_CONSECUTIVE_LOW_TEMPERATURE_ERROR_ALLOWED ≥ 5."
  #elif MILLISECONDS_PREHEAT_TIME < 15000
    #error "Thermistor 66 requires MILLISECONDS_PREHEAT_TIME ≥ 15000, but 30000 or higher is recommended."

to ensure MILLISECONDS_PREHEAT_TIME is > 15000 for a type 66

@ellensp ellensp added the Fix Included A fix is included in the description label Feb 27, 2024
@thisiskeithb thisiskeithb changed the title [BUG] (temperature.h lacks Temperature::preheat_end_ms_hotend in official Marlin 2.1.2.2 download zip package) [BUG] Temperature::preheat_end_ms_hotend missing in 2.1.2.2 Mar 1, 2024
@thisiskeithb
Copy link
Member

Closing since this is already fixed in bugfix-2.1.x.

@thisiskeithb
Copy link
Member

Patch for 2.1.x submitted:

Copy link

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.

@github-actions github-actions bot locked and limited conversation to collaborators Jun 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug: Confirmed ! Fix Included A fix is included in the description
Projects
None yet
Development

No branches or pull requests

3 participants