corrected lack of function battery_charging for mac side and added skip for other prompt generation if not needed