Default [Q] ADB Charging?

Hi All, I successfully setup ADB with the Android development toolkit and modifying the driver file to install the driver. However, my battery depletes when in ADB mode. Is there a way to allow charging while in ADB mode? Thanks!