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:
Russell Ballestrini 2026-05-28 10:41:38 -04:00
parent 3b49e4848f
commit 2e8683640f
No known key found for this signature in database

View file

@ -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; }