Browse Source

0.8.64

* add `ARC` to log (NRF24 Debug)
pull/1394/head
lumapu 1 year ago
parent
commit
66117e545b
  1. 3
      src/CHANGES.md
  2. 3
      src/defines.h
  3. 4
      src/hm/Communication.h
  4. 1
      src/hm/hmRadio.h

3
src/CHANGES.md

@ -1,5 +1,8 @@
# Development Changes # Development Changes
## 0.8.64 - 2024-01-22
* add `ARC` to log (NRF24 Debug)
## 0.8.63 - 2024-01-22 ## 0.8.63 - 2024-01-22
* made code review * made code review
* fixed endless loop #1387 * fixed endless loop #1387

3
src/defines.h

@ -13,7 +13,7 @@
//------------------------------------- //-------------------------------------
#define VERSION_MAJOR 0 #define VERSION_MAJOR 0
#define VERSION_MINOR 8 #define VERSION_MINOR 8
#define VERSION_PATCH 63 #define VERSION_PATCH 64
//------------------------------------- //-------------------------------------
typedef struct { typedef struct {
@ -22,6 +22,7 @@ typedef struct {
int8_t rssi; int8_t rssi;
uint8_t packet[MAX_RF_PAYLOAD_SIZE]; uint8_t packet[MAX_RF_PAYLOAD_SIZE];
uint16_t millis; uint16_t millis;
uint8_t arc;
} packet_t; } packet_t;
typedef enum { typedef enum {

4
src/hm/Communication.h

@ -284,6 +284,9 @@ class Communication : public CommQueue<> {
DBGPRINT(String(p->millis)); DBGPRINT(String(p->millis));
DBGPRINT(F("ms | ")); DBGPRINT(F("ms | "));
DBGPRINT(String(p->len)); DBGPRINT(String(p->len));
DBGPRINT(F(", ARC "));
DBGPRINT(String(p->arc));
DBGPRINT(F(" |"));
if(INV_RADIO_TYPE_NRF == q->iv->ivRadioType) { if(INV_RADIO_TYPE_NRF == q->iv->ivRadioType) {
DBGPRINT(F(" CH")); DBGPRINT(F(" CH"));
if(3 == p->ch) if(3 == p->ch)
@ -500,6 +503,7 @@ class Communication : public CommQueue<> {
int8_t rssi = -127; int8_t rssi = -127;
uint8_t len = 0; uint8_t len = 0;
DPRINT_IVID(DBG_INFO, q->iv->id);
for(uint8_t i = 0; i < mMaxFrameId; i++) { for(uint8_t i = 0; i < mMaxFrameId; i++) {
if(mLocalBuf[i].len + len > MAX_BUFFER) { if(mLocalBuf[i].len + len > MAX_BUFFER) {
DPRINTLN(DBG_ERROR, F("payload buffer to small!")); DPRINTLN(DBG_ERROR, F("payload buffer to small!"));

1
src/hm/hmRadio.h

@ -307,6 +307,7 @@ class HmRadio : public Radio {
p.len = (len > MAX_RF_PAYLOAD_SIZE) ? MAX_RF_PAYLOAD_SIZE : len; p.len = (len > MAX_RF_PAYLOAD_SIZE) ? MAX_RF_PAYLOAD_SIZE : len;
p.rssi = mNrf24->testRPD() ? -64 : -75; p.rssi = mNrf24->testRPD() ? -64 : -75;
p.millis = millis() - mMillis; p.millis = millis() - mMillis;
p.arc = mNrf24->getARC();
mNrf24->read(p.packet, p.len); mNrf24->read(p.packet, p.len);
if (p.packet[0] != 0x00) { if (p.packet[0] != 0x00) {

Loading…
Cancel
Save