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