Merge branch 'pip2'

This commit is contained in:
Бычков Андрей
2022-07-22 11:18:03 +03:00
2 changed files with 6 additions and 1 deletions

View File

@@ -433,8 +433,13 @@ int PISerial::convertSpeed(PISerial::Speed speed) {
case S4000000: return B4000000;
default: break;
}
#ifdef WINDOWS
piCoutObj << "Warning: Custom speed" << (int)speed;
return (int)speed;
#else
piCoutObj << "Warning: Unknown speed" << (int)speed << ", using 115200";
return B115200;
#endif
}