Honor retry settings across firmware roles
This commit is contained in:
1 parent
4f839d3477
commit
b8f438d6ea
11 files changed
+356
-27
No files matched your search
@@ -92,6 +92,8 @@ class Mesh : public Dispatcher {
|
||||
MeshTables* _tables;
|
||||
DirectRetryEntry _direct_retries[MAX_DIRECT_RETRY_SLOTS];
|
||||
FloodRetryEntry _flood_retries[MAX_FLOOD_RETRY_SLOTS];
|
||||
uint8_t _active_direct_retry_count;
|
||||
uint8_t _active_flood_retry_count;
|
||||
uint8_t _waiting_direct_retry_count;
|
||||
uint8_t _waiting_flood_retry_count;
|
||||
unsigned long _next_direct_retry_timeout;
|
||||
@@ -202,6 +204,11 @@ protected:
|
||||
*/
|
||||
bool cancelActiveRetries(const uint8_t retry_key[MAX_HASH_SIZE]);
|
||||
|
||||
// Cancel every queued/future retry of one route type. A packet already on
|
||||
// air is allowed to finish, but no later retry is armed from it.
|
||||
void cancelAllDirectRetries();
|
||||
void cancelAllFloodRetries();
|
||||
|
||||
/**
|
||||
* \returns true while a direct or flood retry sequence owns this packet payload hash.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user