| 532 | } |
| 533 | |
| 534 | txBoolean fxIsReadable(txMachine* the) |
| 535 | { |
| 536 | if (kSerialConnection == the->connection) { |
| 537 | #if !ESP32 |
| 538 | fxReceiveLoop(); |
| 539 | #endif |
| 540 | return NULL != the->debugFragments; |
| 541 | } |
| 542 | /* |
| 543 | else { |
| 544 | extern uint32_t system_get_rtc_time(void); |
| 545 | static uint32_t next = 0, now; |
| 546 | |
| 547 | if (!the->connection) |
| 548 | return 0; |
| 549 | |
| 550 | now = system_get_rtc_time(); |
| 551 | if (now > next) { |
| 552 | next = now + 170 * 1000; // about 1000 ms |
| 553 | modDelayMilliseconds(0); // give network stack a momemt |
| 554 | } |
| 555 | |
| 556 | return the->readers[0] ? 1 : 0; |
| 557 | } |
| 558 | */ |
| 559 | } |
| 560 | |
| 561 | void fxReceive(txMachine* the) |
| 562 | { |
nothing calls this directly
no test coverage detected