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

Function fxSend

xs/platforms/pico/xsPlatform.c:524–553  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522}
523
524void fxSend(txMachine* the, txBoolean flags)
525{
526 txBoolean more = 0 != (flags & 1);
527 txBoolean binary = 0 != (flags & 2);
528
529 if (kSerialConnection == the->connection) {
530 char *c;
531 txInteger count;
532
533 if (!the->inPrintf) {
534 mxDebugMutexTake();
535 if (binary) {
536 fx_putpi(the, '#', true);
537 ESP_putc((uint8_t)(the->echoOffset >> 8));
538 ESP_putc((uint8_t)the->echoOffset);
539 }
540 else
541 fx_putpi(the, '.', false);
542 }
543 the->inPrintf = more;
544
545 c = the->echoBuffer;
546 count = the->echoOffset;
547 while (count--)
548 ESP_putc(*c++);
549
550 if (!more)
551 mxDebugMutexGive();
552 }
553}
554
555void doRemoteCommand(txMachine *the, uint8_t *cmd, uint32_t cmdLen)
556{

Callers 1

doRemoteCommandFunction · 0.70

Calls 1

fx_putpiFunction · 0.70

Tested by

no test coverage detected