mirror of
https://github.com/lumapu/ahoy.git
synced 2025-08-06 09:58:23 +02:00
0.8.23
* heuristics fix #1269 #1270 * moved `sendInterval` in settings, **important:** *will be reseted to 15s after update to this version* * try to prevent access to radio classes if they are not activated * fixed millis in serial log * changed 'print whole trace' = `false` as default * added communication loop duration in [ms] to serial console * don't print Hex-Payload if 'print whole trace' == `false`
This commit is contained in:
parent
30f580891f
commit
222bf0e54a
14 changed files with 120 additions and 53 deletions
|
@ -9,6 +9,7 @@
|
|||
#include <array>
|
||||
#include <functional>
|
||||
#include "hmInverter.h"
|
||||
#include "../utils/dbg.h"
|
||||
|
||||
template <uint8_t N=100>
|
||||
class CommQueue {
|
||||
|
@ -29,6 +30,14 @@ class CommQueue {
|
|||
mQueue[mWrPtr] = queue_s(iv, cmd, delOnPop, false);
|
||||
}
|
||||
|
||||
uint8_t getFillState(void) {
|
||||
return abs(mRdPtr - mWrPtr);
|
||||
}
|
||||
|
||||
uint8_t getMaxFill(void) {
|
||||
return N;
|
||||
}
|
||||
|
||||
protected:
|
||||
struct queue_s {
|
||||
Inverter<> *iv;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue