From 05218f71988abae3b3567f6a1657a01245006fe4 Mon Sep 17 00:00:00 2001 From: W0rthlessS0ul Date: Mon, 16 Jun 2025 19:55:08 +0300 Subject: [PATCH] bug fixed --- jammer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jammer.c b/jammer.c index b525c9e..aee9dc7 100644 --- a/jammer.c +++ b/jammer.c @@ -219,8 +219,8 @@ static int32_t mj_worker_thread(void* ctx) { for(int ch = 0; ch < limit && !plugin_state->close_thread_please; ch++) { current_channel = hopping_channels[ch]; if(plugin_state->jam_type == 3) { - for(int wifi_ch = hopping_channels_3[plugin_state->wifi_channel]; - wifi_ch < hopping_channels_3[plugin_state->wifi_channel + 6] && + for(int wifi_ch = (plugin_state->wifi_channel * 5) + 1; + wifi_ch < (plugin_state->wifi_channel * 5) + 23 && !plugin_state->close_thread_please; wifi_ch++) { nrf24_write_reg(nrf24_HANDLE, REG_RF_CH, wifi_ch);