Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nonik0 committed Feb 29, 2024
1 parent 3ee5709 commit 0c4578f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -969,9 +969,14 @@ void handleSettingsTabInput(Keyboard_Class::KeysState keyState, uint8_t &redrawF
redrawFlags |= RedrawFlags::MainWindow;

if (espNowMode)
{
espNowInit();
}
else
{
espNowDeinit();
loraInit();
}
}
}
break;
Expand Down Expand Up @@ -1126,7 +1131,14 @@ void setup()
drawTabBar();
drawMainWindow();

loraInit();
if (espNowMode)
{
espNowInit();
}
else
{
loraInit();
}

xTaskCreateUniversal(loraReceiveTask, "loraReceiveTask", 8192, NULL, 1, NULL, APP_CPU_NUM);
xTaskCreateUniversal(pingTask, "pingTask", 8192, NULL, 1, NULL, APP_CPU_NUM);
Expand Down

0 comments on commit 0c4578f

Please sign in to comment.