I've got "If" statements that seem to run all the time, regardless of the condition being tested.
You probably have
if (x = y)
instead of
if (x == y)
Or comparing a pin number instead of reading the pin value.
Without seeing your code only the Phantom knows, but one thing is certain, the processor is doing exactly what you told it to do ![]()
Rob