Default HTC One S-On

My HTC One is not charging when booted but It's charging when it's turned off.
So I have to return it .

But I can't revert back to S-On because adb is not recognizing my device.
fastboot works fine but not adb.

Please help.
Hit thanks if i helped you.