clean GPIO's after callback to prevent spurious event detection