Solenoid control is much simplified in the new Marlin. Please try RCBugFix at: https://github.com/MarlinFirmware/Marlin/tree/RCBugFix