mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
POST /cmd runs the command and answers with an empty 200, so a caller cannot tell "done" from "nothing happened", and whatever the command prints only reaches the serial console. Reading a register over the network needs a second channel just to see the answer. write_char() is the one funnel every console helper goes through, and it already tees into the syslog buffer. A third sink, live only while the httpd runs a command that arrived over the network, puts the same bytes into the response behind the header. Serial and syslog keep getting their copy. The capture stops at the end of the response buffer, so a long listing is truncated rather than overrunning it. BANK1 grows 39 bytes and the common area 52. One byte of xdata, BANK2 unchanged.