Issue #1129, edge detection should be set only on input pins.

Fix for issue #1129