Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Avoiding Stack Pop After Macro Return

    Scheduled Pinned Locked Moved
    Firmware developers
    1
    1
    396
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Anzereundefined
      Anzere
      last edited by

      Hello,

      I am currently using a Duet board and I'm trying to use nested macros to simplify the homing process. I want the homeall.g file to call the homex,homey and homez.g files. However, because the firmware pops the stack after returning from a nested macro, none of the settings configured in the nested macro are saved. Is there a way to get around this and still be able to use nested macros to save settings?

      Thanks!

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Unless otherwise noted, all forum content is licensed under CC-BY-SA