| 533 | } |
| 534 | |
| 535 | int SoftwareSerial::peek() |
| 536 | { |
| 537 | if (!isListening()) |
| 538 | return -1; |
| 539 | |
| 540 | // Empty buffer? |
| 541 | if (_receive_buffer_head == _receive_buffer_tail) |
| 542 | return -1; |
| 543 | |
| 544 | // Read from "head" |
| 545 | return _receive_buffer[_receive_buffer_head]; |
| 546 | } |
nothing calls this directly
no outgoing calls
no test coverage detected