FWIW, if you use arduino-mk you see all compiler warnings by default (there may be a way to turn this on with the arduino IDE too - I haven't looked). Tim. On 08/09/15 09:08, Rob May wrote: > I don't know if this is the problem you are running into, but > shouldn't result be initialised before entering the loop?