Thanks I thought i needed to replace that part but after more testing its the inductor that was open hopefully a new inductor fix me up lol
They was using that to ground the 5 volt side of the power supply.
so when the 24 volt supply comes on it closes the ground to the five volt supply still trying to figure why they did it like that.
See you can plug the board in with usb and program the atmega32u4 chip my guess is thats why mosfet cuts the ground out from the 24 volt side
but powered with 24 volt the two grounds are tied with the mosfet