| 337 | } |
| 338 | |
| 339 | int LoRaClass::peek() |
| 340 | { |
| 341 | if (!available()) { |
| 342 | return -1; |
| 343 | } |
| 344 | |
| 345 | // store current FIFO address |
| 346 | int currentAddress = readRegister(REG_FIFO_ADDR_PTR); |
| 347 | |
| 348 | // read |
| 349 | uint8_t b = readRegister(REG_FIFO); |
| 350 | |
| 351 | // restore FIFO address |
| 352 | writeRegister(REG_FIFO_ADDR_PTR, currentAddress); |
| 353 | |
| 354 | return b; |
| 355 | } |
| 356 | |
| 357 | void LoRaClass::flush() |
| 358 | { |
nothing calls this directly
no outgoing calls
no test coverage detected