MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxIsReadable

Function fxIsReadable

xs/platforms/esp/xsPlatform.c:534–559  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532}
533
534txBoolean 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
561void fxReceive(txMachine* the)
562{

Callers

nothing calls this directly

Calls 1

fxReceiveLoopFunction · 0.70

Tested by

no test coverage detected