Navigation

    Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    state.status string?

    Beta Firmware
    2
    2
    51
    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.
    • Ntrack
      Ntrack last edited by

      I am writing a macro which it is supposed to do different things if the machine is printing or idle . I am trying to query the value of state.status as a string ( Idle, Processing) .
      Using echo #state.status returns 4 if Idle (or 10 if Processing) which I expected.
      Using echo state.status returns the same , which is not what I was expecting.
      I'm trying to do something like this if state.status == Idle as opposed to if state.status == 4(this will work just fine but there will be another 4 letter status value in future?) .
      What is the correct way to achieve this?

      It might be obvious for most of the people here , I appologise, I have no engineeering or programming background, and I spent hours looking for a solution with no result.

      1 Reply Last reply Reply Quote 0
      • dc42
        dc42 administrators last edited by

        This is a bug in 3.01beta2. It is fixed in the internal builds at https://www.dropbox.com/sh/3azy1njy3ayjsbp/AACquxr2m00eV568RZg5QG5wa?dl=0.

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