chat.html: send chat data at decoder baud so messages decode
The inbound UART decoder is constructed at ZEBRA_BAUD_HANDSHAKE and never re-tuned, but chat DATA frames were sent at the negotiated/default baud (10). HELLO frames (sent at 50) decoded fine — peers appeared and the link looked healthy — but DATA at 10 never decoded against a 50-baud decoder, so messages never crossed. Send DATA at ZEBRA_BAUD_HANDSHAKE to match the decoder.
This commit is contained in:
parent
3b49e4848f
commit
2e8683640f
1 changed files with 3 additions and 1 deletions
|
|
@ -1597,7 +1597,9 @@ async function sendCurrentMsg() {
|
|||
if (!msg) return;
|
||||
if (!carrierOn) { logLine('err', 'start carrier first'); return; }
|
||||
const mode = currentMode();
|
||||
const baud = negotiatedBaud || myMaxBaud || ZEBRA_BAUD_DEFAULT;
|
||||
/* must match the inbound decoder, which stays at ZEBRA_BAUD_HANDSHAKE for the
|
||||
* life of the link — data sent at any other baud won't decode on the far side. */
|
||||
const baud = ZEBRA_BAUD_HANDSHAKE;
|
||||
try {
|
||||
if (mode === 'passphrase') {
|
||||
if (!groupKey) { logLine('err', 'no room key'); return; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue