* fix bug heuristic
* add version information to clipboard once 'copy' was clicked
This commit is contained in:
lumapu 2023-12-23 14:53:47 +01:00
parent d31f39286e
commit b3ceadadd4
4 changed files with 10 additions and 4 deletions

View file

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

View file

@ -13,7 +13,7 @@
//-------------------------------------
#define VERSION_MAJOR 0
#define VERSION_MINOR 8
#define VERSION_PATCH 27
#define VERSION_PATCH 28
//-------------------------------------
typedef struct {

View file

@ -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<uint8_t*>(&iv->radioId.u64));
mNrf24->startWrite(mTxBuf, len, false); // false = request ACK response
mMillis = millis();

View file

@ -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")) {