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] (PSU_Control without Hotend) #22235

Closed
vr6syncro opened this issue Jun 27, 2021 · 3 comments
Closed

[BUG] (PSU_Control without Hotend) #22235

vr6syncro opened this issue Jun 27, 2021 · 3 comments

Comments

@vr6syncro
Copy link

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

Yes, and the problem still exists.

Bug Description

Enabled #define PSU_CONTROL
#define AUTO_POWER_CONTROL
#define POWER_TIMEOUT

Only using #define TEMP_SENSOR_COOLER 1

Have no Extruder or Hotend because i am using Laser, so i disabled it.

When i enabled auto_power_control the code copliles with error:
Marlin\src\feature\power.cpp: In static member function 'static bool Power::is_power_needed()': Marlin\src\feature\power.cpp:84:77: error: 'class Temperature' has no member named 'temp_hotend' 84 | HOTEND_LOOP() if (thermalManager.degTargetHotend(e) > 0 || thermalManager.temp_hotend[e].soft_pwm_amount > 0) return true; | ^~~~~~~~~~~
With auto_power_control disabled it compiles fine.

Bug Timeline

new

Expected behavior

compile with no errors.
(After 30 seconds M81 in idle.)

Actual behavior

compile with error

Steps to Reproduce

#define PSU_CONTROL
#define AUTO_POWER_CONTROL

disable extruder and any hotend stuff

Version of Marlin Firmware

latest github

Printer model

Electronics

Add-ons

Your Slicer

No response

Host Software

No response

Additional information & file uploads

I am unsure about the function PSU_CONTROL maybe i missed something in the code?
Attached my config.
Marlin.zip

@slowbro
Copy link
Member

slowbro commented Jun 27, 2021

Found the issue, will submit a PR.

@slowbro
Copy link
Member

slowbro commented Jun 28, 2021

#22245 was merged, this should be resolved.

@github-actions
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 Aug 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants