mirror of
https://github.com/lumapu/ahoy.git
synced 2025-08-06 09:58:23 +02:00
0.8.64
* add `ARC` to log (NRF24 Debug)
This commit is contained in:
parent
77b1f96c03
commit
66117e545b
4 changed files with 10 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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!"));
|
||||||
|
|
|
@ -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…
Add table
Add a link
Reference in a new issue