Adjustment to flash charging