If temperature stays constant then there is no enthalpy change which is what you're trying to measaure, hence only pressure has to stay constant. The definition of enthalpy is the heat changed measured at constant pressure. You may be confusing it with the standard enthalpy change of combustion/formation in which that is slightly different in the fact that those are measured at constant pressure and temperature.