Updated printable to reduce mutex operations when printing newlines

This commit is contained in:
dario
2024-06-26 11:29:23 +02:00
committed by dario
parent bcdec5de60
commit 1e41189480
7 changed files with 126 additions and 72 deletions

View File

@@ -23,8 +23,17 @@ namespace sta
*
* @param str String buffer
* @param length String length
* @param newline If true, send a \r\n to start a new line.
*/
void print(const char * str, size_t length) override;
void print(const char * str, size_t length, bool newline = false) override;
/**
* @brief Print string.
*
* @param str String buffer
* @param length String length
*/
void read(char * str, size_t length) override;
};
} // namespace sta