| 152 | } |
| 153 | |
| 154 | void blejammerLoop() { |
| 155 | checkModeChange(); |
| 156 | |
| 157 | if (currentMode == BLE_MODULE) { |
| 158 | int randomIndex = random(0, sizeof(ble_channels) / sizeof(ble_channels[0])); |
| 159 | int channel = ble_channels[randomIndex]; |
| 160 | radio1.setChannel(channel); |
| 161 | radio2.setChannel(channel); |
| 162 | radio3.setChannel(channel); |
| 163 | |
| 164 | } else if (currentMode == Bluetooth_MODULE) { |
| 165 | int randomIndex = random(0, sizeof(bluetooth_channels) / sizeof(bluetooth_channels[0])); |
| 166 | int channel = bluetooth_channels[randomIndex]; |
| 167 | radio1.setChannel(channel); |
| 168 | radio2.setChannel(channel); |
| 169 | radio3.setChannel(channel); |
| 170 | } |
| 171 | } |
nothing calls this directly
no test coverage detected