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

    Can't edit daemon.g file

    Scheduled Pinned Locked Moved
    Using Duet Controllers
    2
    2
    136
    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.
    • e4dundefined
      e4d
      last edited by

      Hello, I have an error when I want to edit the daemon.g file : "Error: Cannot delete file /sys/daemon.g because it is open"

      I thought it was because there is a while loop running in the daemon file so I tried using a runDeamon variable that could stop this while loop.

      Here's my daemon.g file :

      while global.runDaemon == true
          if global.var1== true
              ; suction
              if sensors.gpIn[0].value == 0 && sensors.gpIn[1].value == 1 ; high pressure
                  M42 P1 S1   ; start distr2
              if sensors.gpIn[0].value == 0 && sensors.gpIn[1].value == 0 ; low pressure
                  M42 P1 S0   ; stop distr2
          else
              M42 P1 S0	; stop distr2
      
          G4 S1	
      

      Can you please tell me how to bypass this problem ? Thanks

      jay_s_ukundefined 1 Reply Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @e4d
        last edited by

        @e4d rename the daemon.g file and then you should be able to edit it

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

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