Skip to content

Commit

Permalink
fixes for serial for chromadeck
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Dec 25, 2023
1 parent 79dc548 commit bfa163d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions VortexEngine/src/Serial/Serial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ bool SerialComs::checkSerial()
if (!Vortex::vcallbacks()->serialCheck()) {
return false;
}
Vortex::vcallbacks()->serialBegin(9600);
Vortex::vcallbacks()->serialBegin(115200);
#else
// This will check if the serial communication is open
if (!Serial) {
if (!Serial.available()) {
// serial is not connected
return false;
}
// Begin serial communications
Serial.begin(9600);
Serial.begin(115200);
#endif
#endif
// serial is now connected
Expand Down

0 comments on commit bfa163d

Please sign in to comment.