Replace manual potentiometer with a digital one

That's correct.

That's just my gut talking since you have no other information on the circuit.

.