mirror of
https://github.com/lumapu/ahoy.git
synced 2025-08-06 09:58:23 +02:00
0.8.28
* fix bug heuristic * add version information to clipboard once 'copy' was clicked
This commit is contained in:
parent
d31f39286e
commit
b3ceadadd4
4 changed files with 10 additions and 4 deletions
|
@ -1,5 +1,9 @@
|
||||||
# Development Changes
|
# 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
|
## 0.8.27 - 2023-12-18
|
||||||
* fix set power limit #1276
|
* fix set power limit #1276
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
//-------------------------------------
|
//-------------------------------------
|
||||||
#define VERSION_MAJOR 0
|
#define VERSION_MAJOR 0
|
||||||
#define VERSION_MINOR 8
|
#define VERSION_MINOR 8
|
||||||
#define VERSION_PATCH 27
|
#define VERSION_PATCH 28
|
||||||
|
|
||||||
//-------------------------------------
|
//-------------------------------------
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
|
@ -290,14 +290,14 @@ class HmRadio : public Radio {
|
||||||
updateCrcs(&len, appendCrc16);
|
updateCrcs(&len, appendCrc16);
|
||||||
|
|
||||||
// set TX and RX channels
|
// set TX and RX channels
|
||||||
mTxChIdx = mRfChLst[iv->heuristics.txRfChId];
|
mTxChIdx = iv->heuristics.txRfChId;
|
||||||
|
|
||||||
if(*mSerialDebug) {
|
if(*mSerialDebug) {
|
||||||
DPRINT_IVID(DBG_INFO, iv->id);
|
DPRINT_IVID(DBG_INFO, iv->id);
|
||||||
DBGPRINT(F("TX "));
|
DBGPRINT(F("TX "));
|
||||||
DBGPRINT(String(len));
|
DBGPRINT(String(len));
|
||||||
DBGPRINT(" CH");
|
DBGPRINT(" CH");
|
||||||
DBGPRINT(String(mTxChIdx));
|
DBGPRINT(String(mRfChLst[mTxChIdx]));
|
||||||
DBGPRINT(F(" | "));
|
DBGPRINT(F(" | "));
|
||||||
if(*mPrintWholeTrace) {
|
if(*mPrintWholeTrace) {
|
||||||
if(*mPrivacyMode)
|
if(*mPrivacyMode)
|
||||||
|
@ -309,7 +309,7 @@ class HmRadio : public Radio {
|
||||||
}
|
}
|
||||||
|
|
||||||
mNrf24->stopListening();
|
mNrf24->stopListening();
|
||||||
mNrf24->setChannel(mTxChIdx);
|
mNrf24->setChannel(mRfChLst[mTxChIdx]);
|
||||||
mNrf24->openWritingPipe(reinterpret_cast<uint8_t*>(&iv->radioId.u64));
|
mNrf24->openWritingPipe(reinterpret_cast<uint8_t*>(&iv->radioId.u64));
|
||||||
mNrf24->startWrite(mTxBuf, len, false); // false = request ACK response
|
mNrf24->startWrite(mTxBuf, len, false); // false = request ACK response
|
||||||
mMillis = millis();
|
mMillis = millis();
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
var mAutoScroll = true;
|
var mAutoScroll = true;
|
||||||
var con = document.getElementById("serial");
|
var con = document.getElementById("serial");
|
||||||
var exeOnce = true;
|
var exeOnce = true;
|
||||||
|
var version, build;
|
||||||
|
|
||||||
function parseGeneric(obj) {
|
function parseGeneric(obj) {
|
||||||
var up = obj["ts_uptime"];
|
var up = obj["ts_uptime"];
|
||||||
|
@ -65,6 +66,7 @@
|
||||||
this.value = (mAutoScroll) ? "autoscroll" : "manual scroll";
|
this.value = (mAutoScroll) ? "autoscroll" : "manual scroll";
|
||||||
});
|
});
|
||||||
document.getElementById("copy").addEventListener("click", function() {
|
document.getElementById("copy").addEventListener("click", function() {
|
||||||
|
con.value = version + " - " + build + "\n---------------\n" + con.value;
|
||||||
if (window.clipboardData && window.clipboardData.setData) {
|
if (window.clipboardData && window.clipboardData.setData) {
|
||||||
return window.clipboardData.setData("Text", text);
|
return window.clipboardData.setData("Text", text);
|
||||||
} else if (document.queryCommandSupported && document.queryCommandSupported("copy")) {
|
} else if (document.queryCommandSupported && document.queryCommandSupported("copy")) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue