trying to fix connunication error.
also fix discharge while lowring the value