| 522 | } |
| 523 | |
| 524 | void 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 | |
| 555 | void doRemoteCommand(txMachine *the, uint8_t *cmd, uint32_t cmdLen) |
| 556 | { |
no test coverage detected