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

Function pressBt02

VScode Platformio/src/jammer.cpp:125–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125void pressBt02() {
126 static unsigned long last_interrupt_time = 0;
127 unsigned long interrupt_time = millis();
128 if (interrupt_time - last_interrupt_time > 200) {
129 jamming = !jamming;
130 Serial.println(jamming ? "Jamming started" : "Jamming stopped");
131 }
132 last_interrupt_time = interrupt_time;
133}
134
135void pressBt03() {
136 static unsigned long last_interrupt_time = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected