Can't edit daemon.g file
-
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
-
@e4d rename the daemon.g file and then you should be able to edit it