Skip to content

Commit

Permalink
0.8.28
Browse files Browse the repository at this point in the history
* fix bug heuristic
* add version information to clipboard once 'copy' was clicked
  • Loading branch information
lumapu committed Dec 23, 2023
1 parent d31f392 commit b3ceada
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/CHANGES.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
//-------------------------------------
#define VERSION_MAJOR 0
#define VERSION_MINOR 8
#define VERSION_PATCH 27
#define VERSION_PATCH 28

//-------------------------------------
typedef struct {
Expand Down
6 changes: 3 additions & 3 deletions src/hm/hmRadio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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();
Expand Down
2 changes: 2 additions & 0 deletions src/web/html/serial.html
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand Down Expand Up @@ -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")) {
Expand Down

0 comments on commit b3ceada

Please sign in to comment.