| 158 | } |
| 159 | |
| 160 | void 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 | } |
nothing calls this directly
no test coverage detected