@audryhome said in Modifying a global variable while running:
Regarding daemon.g, I think user should have control on the 10 sec delay. I understand the reason why this is done that way, but this greatly limit the usability of this interesing functionality.
Actually you have failed to understand the advice you were given.
If you put an infinite loop in your daemon.g, it does not run every 10 seconds.
; daemon.g
while true
echo state.time
G4 S1
Would do everything in that loop once a second (plus the time to carry out the commands within the loop)
As the macro remains open, RRF won't open it again.
The reason it was changed to 10 seconds was because every time it's opened it must be read from the SD card, which impacts on other processes.