Duet3D Logo

    Duet3D

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

    Leading blanks are not written to file RRF 3.2

    Gcode meta commands
    2
    3
    78
    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.
    • wschadow
      wschadow last edited by

      When writing to a file the leading blanks and tabs are not written.

      ; =========================================================================================================
      ;
      M28 "/sys/AutoloadStatus"                          ; open file for output
      M950 J1 C"nil"                                     ; free input 1 e0 filament sensor 
      if sensors.filamentMonitors[0].enabled = true      ; if filament sensor is active
          M591 D0 P2 C"e0stop" S1                        ; filament runout sensor;
      M29                                                ; close file
      ;
      ; =========================================================================================================
      
      

      The output looks like this

      M950 J1 C"nil"                                     
      if sensors.filamentMonitors[0].enabled = true      
      M591 D0 P2 C"e0stop" S1                        
      

      The if statement is not executed properly. Any ideas?
      Thanks, Wolfgang

      dc42 1 Reply Last reply Reply Quote 1
      • dc42
        dc42 administrators @wschadow last edited by

        @wschadow I think this is a bug. I've flagged it for fixing in release 3.4.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        wschadow 1 Reply Last reply Reply Quote 0
        • wschadow
          wschadow @dc42 last edited by

          @dc42 Thanks!

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