diff --git a/VortexEngine/src/Serial/Serial.cpp b/VortexEngine/src/Serial/Serial.cpp index a54b8f93c7..e22067e1d5 100644 --- a/VortexEngine/src/Serial/Serial.cpp +++ b/VortexEngine/src/Serial/Serial.cpp @@ -119,6 +119,7 @@ void SerialComs::write(const char *msg, ...) Vortex::vcallbacks()->serialWrite(buf, len); #else Serial.write(buf, len); + Serial.flush(); #endif va_end(list); #endif @@ -138,6 +139,7 @@ void SerialComs::write(ByteStream &byteStream) #else Serial.write((const uint8_t *)&size, sizeof(size)); Serial.write((const uint8_t *)byteStream.rawData(), byteStream.rawSize()); + Serial.flush(); #endif #endif }