1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-21 15:25:36 +03:00

Improve serialPrint performance

This commit is contained in:
Petr Ledvina 2023-08-16 17:59:50 +02:00
parent 8bf9b928f5
commit dd566da500

View file

@ -27,10 +27,7 @@
void serialPrint(serialPort_t *instance, const char *str)
{
uint8_t ch;
while ((ch = *(str++)) != 0) {
serialWrite(instance, ch);
}
serialWriteBuf(instance, str, strlen(str);
}
uint32_t serialGetBaudRate(serialPort_t *instance)