Flushing Arduino

Mfia:

type=1;

error=0;



I included this part so that code should run...before .. code wasn't working..I dont think there is error in this part.. :relaxed:

Sure there isn't really an error there but what Awol is getting at is that assigning a variable a value then immediately testing it for different values is pointless. That you had to assign values to these to make it work suggest that they aren't getting the values you think they should when they should.

I have found that when I start having to kludge things to make a program work I've got a problem somewhere.