Fixed missing mode variable in digital pin.