Browse Source

-Fix for issue #1239 "Clear counts" on rfm69 does not reset node count properly.

ota
Sven Kopetzki 6 years ago
parent
commit
41f0fece71
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      code/espurna/rfm69.ino

+ 2
- 1
code/espurna/rfm69.ino View File

@ -235,9 +235,10 @@ void _rfm69Loop() {
}
void _rfm69Clear() {
for(unsigned int i=0; i<255; i++) {
for(unsigned int i=0; i<(sizeof(_rfm69_node_info) / sizeof(_node_t)); i++) {
_rfm69_node_info[i].duplicates = 0;
_rfm69_node_info[i].missing = 0;
_rfm69_node_info [i].count = 0;
}
_rfm69_node_count = 0;
_rfm69_packet_count = 0;


Loading…
Cancel
Save