通过 etl_putchar 输出字符串(空指针安全)
| 80 | |
| 81 | /// 通过 etl_putchar 输出字符串(空指针安全) |
| 82 | __always_inline auto PutStr(const char* s) -> void { |
| 83 | if (!s) { |
| 84 | s = "(null)"; |
| 85 | } |
| 86 | while (*s) { |
| 87 | etl_putchar(static_cast<unsigned char>(*s)); |
| 88 | ++s; |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | /** |
| 93 | * @brief 将队列中所有条目输出至串口 |
no test coverage detected