Default Device Not Recognised In ADB Try This

After rooting and unlocking my device and installing custom rom via fastboot commands cos couldn't s off , ADB wasn't seeing my device but after trying this it worked and was then able to s off
Seen a lot of people having this problem so thought I would post this so it may help others !