PISerial windows custom speed
This commit is contained in:
@@ -411,8 +411,13 @@ int PISerial::convertSpeed(PISerial::Speed speed) {
|
|||||||
case S4000000: return B4000000;
|
case S4000000: return B4000000;
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
#ifdef WINDOWS
|
||||||
|
piCoutObj << "Warning: Custom speed" << (int)speed;
|
||||||
|
return (int)speed;
|
||||||
|
#else
|
||||||
piCoutObj << "Warning: Unknown speed" << (int)speed << ", using 115200";
|
piCoutObj << "Warning: Unknown speed" << (int)speed << ", using 115200";
|
||||||
return B115200;
|
return B115200;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user