Small fixes to Arduino code.