Fix arduino reset

prevent while-loop lockup when MyKeepon loses power (small step towards having a self-resetting MyKeepon).

plus an array-indexing fix.