Skip to content

Commit

Permalink
Merge pull request #372 from smoochiee/main
Browse files Browse the repository at this point in the history
Update nrf_jammer.cpp
  • Loading branch information
pr3y authored Oct 30, 2024
2 parents 3644af6 + d3015ba commit 80475d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/modules/NRF24/nrf_jammer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,12 @@ void nrf_jammer() {
if (ptr_hop >= sizeof(hopping_channel)) ptr_hop = 0; // To avoid array indexing overflow
NRFradio.setChannel(hopping_channel[ptr_hop]); // Change channel
}
NRFradio.powerDown();
NRFradio.stopConstCarrier();//this will stop jamming without powering down nrf
//NRFradio.powerDown(); power down without powering up on scanner
} else {
Serial.println("Fail Starting radio");
displayError("NRF24 not found");
delay(500);
}
#endif
}
}

0 comments on commit 80475d5

Please sign in to comment.