Browse Source

0.8.28

* fix bug heuristic
* add version information to clipboard once 'copy' was clicked
pull/1290/head
lumapu 1 year ago
parent
commit
b3ceadadd4
  1. 4
      src/CHANGES.md
  2. 2
      src/defines.h
  3. 6
      src/hm/hmRadio.h
  4. 2
      src/web/html/serial.html

4
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

2
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 {

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

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

Loading…
Cancel
Save