diff --git a/src/CHANGES.md b/src/CHANGES.md index 95265968..83917be9 100644 --- a/src/CHANGES.md +++ b/src/CHANGES.md @@ -1,5 +1,9 @@ # Development Changes +## 0.8.28 - 2023-12-23 +* fix bug heuristic +* add version information to clipboard once 'copy' was clicked + ## 0.8.27 - 2023-12-18 * fix set power limit #1276 diff --git a/src/defines.h b/src/defines.h index b6e5b8aa..b7ab4e55 100644 --- a/src/defines.h +++ b/src/defines.h @@ -13,7 +13,7 @@ //------------------------------------- #define VERSION_MAJOR 0 #define VERSION_MINOR 8 -#define VERSION_PATCH 27 +#define VERSION_PATCH 28 //------------------------------------- typedef struct { diff --git a/src/hm/hmRadio.h b/src/hm/hmRadio.h index d0387aa4..dd83544f 100644 --- a/src/hm/hmRadio.h +++ b/src/hm/hmRadio.h @@ -290,14 +290,14 @@ class HmRadio : public Radio { updateCrcs(&len, appendCrc16); // set TX and RX channels - mTxChIdx = mRfChLst[iv->heuristics.txRfChId]; + mTxChIdx = iv->heuristics.txRfChId; if(*mSerialDebug) { DPRINT_IVID(DBG_INFO, iv->id); DBGPRINT(F("TX ")); DBGPRINT(String(len)); DBGPRINT(" CH"); - DBGPRINT(String(mTxChIdx)); + DBGPRINT(String(mRfChLst[mTxChIdx])); DBGPRINT(F(" | ")); if(*mPrintWholeTrace) { if(*mPrivacyMode) @@ -309,7 +309,7 @@ class HmRadio : public Radio { } mNrf24->stopListening(); - mNrf24->setChannel(mTxChIdx); + mNrf24->setChannel(mRfChLst[mTxChIdx]); mNrf24->openWritingPipe(reinterpret_cast(&iv->radioId.u64)); mNrf24->startWrite(mTxBuf, len, false); // false = request ACK response mMillis = millis(); diff --git a/src/web/html/serial.html b/src/web/html/serial.html index 675ee668..966ffecd 100644 --- a/src/web/html/serial.html +++ b/src/web/html/serial.html @@ -27,6 +27,7 @@ var mAutoScroll = true; var con = document.getElementById("serial"); var exeOnce = true; + var version, build; function parseGeneric(obj) { var up = obj["ts_uptime"]; @@ -65,6 +66,7 @@ this.value = (mAutoScroll) ? "autoscroll" : "manual scroll"; }); document.getElementById("copy").addEventListener("click", function() { + con.value = version + " - " + build + "\n---------------\n" + con.value; if (window.clipboardData && window.clipboardData.setData) { return window.clipboardData.setData("Text", text); } else if (document.queryCommandSupported && document.queryCommandSupported("copy")) {