Hello!
I have found a bug and shortly discussed it with other members here: BUG? - initialisation of integer with -1 fails! Please confirm - Programming Questions - Arduino Forum Another member can confirm the faulty behaviour.
Shortly, a variable that is initialised with "-1" before the setup()-function won't have this value in the loop()-function. Please look at the link for details.
bumberle