Skip to content

Commit

Permalink
Fix signals counter
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo Ortiz López committed Mar 7, 2025
1 parent e08d2bd commit 49002f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/rf/rf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1664,6 +1664,7 @@ void rf_scan_copy() {
frequency = 0;
rf_scan_copy_draw_signal(received,signals,ReadRAW, codesOnly);
}else if (repetition >= 2 && !durations.empty()){ // if there is no value decoded by RCSwitch, but we calculated a CRC, show it
++signals;
received.preset = "0";
received.protocol = "RAW";
received.key = crc64_ecma(durations); // Calculate CRC-64
Expand All @@ -1672,6 +1673,7 @@ void rf_scan_copy() {
frequency = 0;
rf_scan_copy_draw_signal(received,signals,ReadRAW, codesOnly);
}else if(!codesOnly){ // If there is no decoded value and no CRC calculated, only show the data when specified
++signals;
received.preset = "0";
received.protocol = "RAW";
received.key = 0;
Expand Down

0 comments on commit 49002f5

Please sign in to comment.