Browse Source

Merge pull request #1241 from Trickx/clearcount

-Fix for issue #1239
ota
Xose Pérez 6 years ago
committed by GitHub
parent
commit
01c33c74d1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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