mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-06-30 20:40:59 +02:00
@ -89,7 +89,11 @@ size_t HardwareSerial::write(const uint8_t *buffer, size_t size)
|
|||||||
uartWriteBuf(_uart, buffer, size);
|
uartWriteBuf(_uart, buffer, size);
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
uint32_t HardwareSerial::baudRate()
|
||||||
|
|
||||||
|
{
|
||||||
|
return uartGetBaudRate(_uart);
|
||||||
|
}
|
||||||
HardwareSerial::operator bool() const
|
HardwareSerial::operator bool() const
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
@ -66,6 +66,7 @@ public:
|
|||||||
{
|
{
|
||||||
return write((uint8_t) n);
|
return write((uint8_t) n);
|
||||||
}
|
}
|
||||||
|
uint32_t baudRate();
|
||||||
operator bool() const;
|
operator bool() const;
|
||||||
|
|
||||||
void setDebugOutput(bool);
|
void setDebugOutput(bool);
|
||||||
|
Reference in New Issue
Block a user