@dc42 Yes, I'm pretty sure that filament-error.g is executed. The sensor is configured as M591 D0 P1 C"e0stop" S1. In my case it will trigger when filament is inserted.
filament-error.g looks like this:
; =========================================================================================================
;
; called when a filament error occurs
;
; =========================================================================================================
;
M291 P"welcome to filament error"
echo "welcome to filament error"
; turn sensor off
M591 D0 P1 C"e0stop" S0
; =========================================================================================================
;
This is what happens, when filament is inserted. First on the Panel first the error message pops-up:
IMG_1515.jpg
Then a split secend later the message from filament-error.g pops-up
IMG_1516.jpg
The console looks like this:
IMG_1517.jpg
Here the message from filament-error.g is displayed first.
According to the documentation the filament-erro message should not be displayed. In my opinion this is the preferrable way of implementation.