Skip to content

Commit

Permalink
fixed serial
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Jan 17, 2025
1 parent bad1b96 commit fb48129
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions VortexEngine/src/Serial/Serial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,18 +144,8 @@ void SerialComs::write(ByteStream &byteStream)
Vortex::vcallbacks()->serialWrite((const uint8_t *)&size, sizeof(size));
Vortex::vcallbacks()->serialWrite((const uint8_t *)byteStream.rawData(), byteStream.rawSize());
#else
//uint32_t bufSize = sizeof(size) + size;
//uint8_t *buf = new uint8_t[size];
//if (!buf) {
// return;
//}
//memcpy(buf, &size, sizeof(size));
//memcpy(buf + sizeof(size), byteStream.rawData(), size);
Serial.write((const uint8_t *)&size, sizeof(size));
Serial.write((const uint8_t *)byteStream.rawData(), byteStream.rawSize());
//Serial.write(buf, bufSize);
//delete[] buf;
//delay(100);
Serial.flush();
#endif
#endif
Expand Down

0 comments on commit fb48129

Please sign in to comment.