Fix multiplatform issue for arduino