All plugins (Filament Sensor Simplified, Octoprint-Smart-Filament-Sensor etc..) are made for RBI i run octoprint on docker in my server. My run-out sensor is connected to the BIGTREETECH SKR 2 board... but the old runout sensor was inverted.. now it sends inverted commands.. ~~`
And i cant recompile it miliy nilly because i have no way to compile the exact config. And this one works really well.
Does the sensor have a way to change the wiring to it? If it is a limit switch, they typically have 3 connections. Common, Normally open(NO) and Normally closed(NC). Changing the connection to the NO or NC connection points would essentially invert the signal.
Well if you cant do it in the software... You could do it with hardware.. Use a relay with both NC and NO contacts.. Have the sensor drive the relay. You can now pick which way you want it to be active.
It's also worth noting that the BTT SKR 2 board isn't generally stock in any printer, so even that source above isn't going to be that helpful in this case. That also means that someone had to have built the firmware for this particular printer at some point as well. If it's something that users commonly put SKR boards in, there's likely an example configuration out there already: https://github.com/MarlinFirmware/Configurations/tree/bugfix-2.1.x/config/examples