diff --git a/docs/software/TODO.md b/docs/software/TODO.md index d69aa43eb..9b1e77f69 100644 --- a/docs/software/TODO.md +++ b/docs/software/TODO.md @@ -4,11 +4,8 @@ You probably don't care about this section - skip to the next one. ## 1.2 cleanup & multichannel support: -nastybug -try again on esp32 -emittx thinks it emitted but client sees nothing. works again later -segger logs have errors in formatting that should be impossible (because not going through serial, try stalling on segger) - +* cdcacm bug on nrf52: emittx thinks it emitted but client sees nothing. works again later +* nrf52: segger logs have errors in formatting that should be impossible (because not going through serial, try stalling on segger) * DONE call RouterPlugin for *all* packets - not just Router packets * DONE generate channel hash from the name of the channel+the psk (not just one or the other) * DONE send a hint that can be used to select which channel to try and hash against with each message diff --git a/src/mesh/StreamAPI.cpp b/src/mesh/StreamAPI.cpp index 8015b951b..a5e36d463 100644 --- a/src/mesh/StreamAPI.cpp +++ b/src/mesh/StreamAPI.cpp @@ -71,12 +71,18 @@ void StreamAPI::writeStream() void StreamAPI::emitTxBuffer(size_t len) { if (len != 0) { + DEBUG_MSG("emit tx %d\n", len); txBuf[0] = START1; txBuf[1] = START2; txBuf[2] = (len >> 8) & 0xff; txBuf[3] = len & 0xff; - stream->write(txBuf, len + HEADER_LEN); + auto totalLen = len + HEADER_LEN; + stream->write(txBuf, totalLen); + /* for(size_t i = 0; i < totalLen; i++) { + stream->write(txBuf[i]); + // stream->flush(); + } */ } }