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

[QUESTION] Error when COLOR_CHANGE Macro is triggered #15

Closed
lilFonsi15 opened this issue Nov 16, 2023 · 3 comments
Closed

[QUESTION] Error when COLOR_CHANGE Macro is triggered #15

lilFonsi15 opened this issue Nov 16, 2023 · 3 comments
Labels
question Further information is requested

Comments

@lilFonsi15
Copy link

Hi Rootiest,

Thank you for the awesome Macro and write up.

Quick question for you, when the COLOR_CHANGE macro is triggered on my setup I get the following error twice in my console.

Error on 'SET_IDLE_TIMEOUT TIMEOUT=': unable to parse

Have you seen this before?

Thank you for the help and time.

@lilFonsi15 lilFonsi15 added the question Further information is requested label Nov 16, 2023
Copy link

Welcome lilFonsi15!\nCongrats on creating your first issue.\nPlease follow the issue template to help us resolve your issue quickly.

@Shift92
Copy link

Shift92 commented Mar 3, 2024

lilFonsi15,

I ran into the same error as you. I resolved the problem by commenting out the SET_IDLE_TIMEOUT. From what I understand the TIMEOUT is for when audio alerts are being used, so if you do need the TIMEOUT you could also set the duration instead of having it pulled from M600.

[gcode_macro COLOR_CHANGE] description: Procedure when Color Change is triggered gcode: {% set m600cfg = printer["gcode_macro _m600cfg"] %} ; get m600cfg variables M{m600cfg.output|int} Filament Runout {% if m600cfg.use_telegram == True %} TELEGRAM_FILAMENT_RUNOUT {% endif %} #SET_IDLE_TIMEOUT TIMEOUT={m600cfg.m600_idle_time} ; results in parsing error {% if m600cfg.audio_status == True %} ; if using audio status alerts {m600cfg.audio_macro} ALERT_BEEP_ON {% endif %} M600 SET_GCODE_VARIABLE MACRO=_m600cfg VARIABLE=prev_temp VALUE={printer.extruder.target} SET_GCODE_VARIABLE MACRO=_m600cfg VARIABLE=runout VALUE=True M{m600cfg.output|int} Unloading Filament... UNLOAD_FILAMENT

Hope this helps!

@rootiest
Copy link
Owner

rootiest commented Mar 3, 2024

Hey folks,

Sorry for the really delayed response!
I took a look at this issue and I think I have a solution.

The macro tries to reference a variable called m600_idle_time which is missing.
That causes it to try to set the new idle timeout to an undefined value, which caused the error you experienced.

I have pushed an update that should correct this issue, and the idle timeout adjustments should work as expected now.

Relevant commit:

[Fix for missing m600_idle_time variable in smart-m600](26ab35a)

@rootiest rootiest closed this as completed Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants