| 752 | } |
| 753 | |
| 754 | void fxRestart(txSerialTool self) |
| 755 | { |
| 756 | if (self->traceCommands) |
| 757 | fprintf(stderr, "### fxRestart\n"); |
| 758 | |
| 759 | if (self->currentMachine) { // send a software restart request for boards with no RTS to toggle |
| 760 | char out[32]; |
| 761 | |
| 762 | sprintf(out, "\r\n<?xs#%8.8X?>", self->currentMachine->value); |
| 763 | fxWriteSerial(self, out, strlen(out)); |
| 764 | |
| 765 | out[0] = 0; |
| 766 | out[1] = 1; // length |
| 767 | out[2] = 1; // restart |
| 768 | fxWriteSerial(self, out, 3); |
| 769 | } |
| 770 | |
| 771 | fxRestartSerial(self); |
| 772 | gRestarting = 1; |
| 773 | } |
| 774 | |
| 775 | void fxSetTime(txSerialTool self, txSerialMachine machine) |
| 776 | { |
no test coverage detected