| 68 | } |
| 69 | |
| 70 | void flashconsole_tx_byte(unsigned char c) |
| 71 | { |
| 72 | if (!rdev_ptr) |
| 73 | return; |
| 74 | |
| 75 | size_t region_size = region_device_sz(rdev_ptr); |
| 76 | |
| 77 | if (line_offset < LINE_BUFFER_SIZE) |
| 78 | line_buffer[line_offset++] = c; |
| 79 | |
| 80 | if (line_offset >= LINE_BUFFER_SIZE || |
| 81 | offset + line_offset >= region_size || c == '\n') { |
| 82 | flashconsole_tx_flush(); |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | void flashconsole_tx_flush(void) |
| 87 | { |
no test coverage detected