correted bug of arrayout of bound

by default port number is 1 even if there is no arduino connected
so the size1 limit has to be size1-1