forked from espressif/arduino-esp32
Removed shitty Print and shitty Printable interfaces
This commit is contained in:
@ -191,16 +191,10 @@ void HardwareSerial::flush(bool txOnly)
|
||||
uartFlushTxOnly(_uart, txOnly);
|
||||
}
|
||||
|
||||
size_t HardwareSerial::write(uint8_t c)
|
||||
size_t HardwareSerial::write(std::string_view buf)
|
||||
{
|
||||
uartWrite(_uart, c);
|
||||
return 1;
|
||||
}
|
||||
|
||||
size_t HardwareSerial::write(const uint8_t *buffer, size_t size)
|
||||
{
|
||||
uartWriteBuf(_uart, buffer, size);
|
||||
return size;
|
||||
uartWriteBuf(_uart, (const uint8_t *)buf.data(), buf.size());
|
||||
return buf.size();
|
||||
}
|
||||
uint32_t HardwareSerial::baudRate()
|
||||
|
||||
|
Reference in New Issue
Block a user