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

Function blejammerLoop

VScode Platformio/src/blejammer.cpp:160–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160void blejammerLoop() {
161 checkModeChange();
162
163 if (currentMode == BLE_MODULE) {
164 int randomIndex = random(0, sizeof(ble_channels) / sizeof(ble_channels[0]));
165 int channel = ble_channels[randomIndex];
166 radio1.setChannel(channel);
167 radio2.setChannel(channel);
168 radio3.setChannel(channel);
169
170 } else if (currentMode == Bluetooth_MODULE) {
171 int randomIndex = random(0, sizeof(bluetooth_channels) / sizeof(bluetooth_channels[0]));
172 int channel = bluetooth_channels[randomIndex];
173 radio1.setChannel(channel);
174 radio2.setChannel(channel);
175 radio3.setChannel(channel);
176 }
177}

Callers

nothing calls this directly

Calls 1

checkModeChangeFunction · 0.70

Tested by

no test coverage detected