A few small cleanups for arduino tcp