Skip to content

Commit

Permalink
Fix fo RcStiwch decoded saved signals
Browse files Browse the repository at this point in the history
This issue appeared 3 commits before
  • Loading branch information
bmorcelli committed Dec 25, 2024
1 parent 54dc1b0 commit e92a3ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modules/rf/rf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,7 @@ String RCSwitch_Read(float frequency, int max_loops, bool raw) {
}
//Serial.println(received.protocol);
//Serial.println(received.data);
decimalToHexString(received.key,hexString);

rf_scan_copy_draw_signal(received, 1, raw);
}
Expand Down Expand Up @@ -796,6 +797,7 @@ String RCSwitch_Read(float frequency, int max_loops, bool raw) {
goto RestartRec;
}
else if (chosen==2) {
decimalToHexString(received.key,hexString);
RCSwitch_SaveSignal(frequency, received, raw, hexString);

delay(2000);
Expand Down Expand Up @@ -1634,6 +1636,7 @@ void rf_scan_copy() {
}
else if (option == 2) { // Save Signal
Serial.println(received.protocol=="RAW"? "RCSwitch_SaveSignal RAW true":"RCSwitch_SaveSignal RAW false");
decimalToHexString(received.key,hexString);
RCSwitch_SaveSignal(found_freq, received, received.protocol=="RAW"? true:false, hexString);
deinitRfModule();
delay(200);
Expand Down

0 comments on commit e92a3ab

Please sign in to comment.