Browse Source

* more debug output (#retransmits)

* improved loop counters
pull/69/head
lumapu 3 years ago
parent
commit
9ec93f4647
  1. 6
      tools/esp8266/app.cpp
  2. 2
      tools/esp8266/defines.h
  3. 2
      tools/esp8266/hmRadio.h

6
tools/esp8266/app.cpp

@ -236,8 +236,8 @@ void app::loop(void) {
}
mSys->BufCtrl.popBack();
yield();
}
yield();
if(rxRdy) {
@ -321,7 +321,7 @@ void app::loop(void) {
mRxFailed++;
if(mSerialDebug) {
DPRINT(F("Inverter #") + String(iv->id) + " ");
DPRINTLN(F("no Payload received!"));
DPRINTLN(F("no Payload received! (retransmits: ") + String(mPayload[iv->id].retransmits) + ")");
}
}
@ -412,7 +412,7 @@ void app::processPayload(bool retransmit) {
else
mSys->Radio.sendTimePacket(iv->radioId.u64, mPayload[iv->id].ts);
}
mSys->Radio.switchRxCh(300);
mSys->Radio.switchRxCh(100);
}
}
}

2
tools/esp8266/defines.h

@ -16,7 +16,7 @@
//-------------------------------------
#define VERSION_MAJOR 0
#define VERSION_MINOR 4
#define VERSION_PATCH 16
#define VERSION_PATCH 17
//-------------------------------------

2
tools/esp8266/hmRadio.h

@ -14,7 +14,7 @@
#define DUMMY_RADIO_ID ((uint64_t)0xDEADBEEF01ULL)
#define RX_CHANNELS 5
#define RX_LOOP_CNT 600
#define RX_LOOP_CNT 300
const char* const rf24AmpPower[] = {"MIN", "LOW", "HIGH", "MAX"};

Loading…
Cancel
Save