I am a beginner and I know what I did is gonna sound terrible.

I have a Mk3/4 Planet CNC controller and I connected NC PNP inductive proximity switches to LIM1, LIM2 and LIM3 inputs.

The problem is that I did that without any optocouplers. I connected the brown wire to +12V, blue wire to GND and black wire directly to the input.

It seems like I fried the inputs. Is there any way to fix what I did?