MCPcopy Create free account
hub / github.com/cifertech/nRFBox / pressBt03

Function pressBt03

VScode Platformio/src/jammer.cpp:135–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135void pressBt03() {
136 static unsigned long last_interrupt_time = 0;
137 unsigned long interrupt_time = millis();
138 if (interrupt_time - last_interrupt_time > 200) {
139 dataRateIndex = (dataRateIndex + 1) % 3; // Cycle through data rates
140 setRadioParameters();
141 Serial.println("Data rate changed");
142 }
143 last_interrupt_time = interrupt_time;
144}
145
146void pressBt04() {
147 static unsigned long last_interrupt_time = 0;

Callers

nothing calls this directly

Calls 1

setRadioParametersFunction · 0.70

Tested by

no test coverage detected