Skip to content

Commit 34922d0

Browse files
committed
Fix running on ESP32 variants with only a single CPU core
1 parent 4514e64 commit 34922d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ void app_main(void) {
351351
#endif
352352
#endif
353353

354-
xTaskCreatePinnedToCore(wifi_task, TAG, 4096, NULL, 10, NULL, 1);
354+
xTaskCreatePinnedToCore(wifi_task, TAG, 4096, NULL, 10, NULL, CONFIG_SOC_CPU_CORES_NUM - 1);
355355

356356
badgelink_init();
357357
usb_initialize();

0 commit comments

Comments
 (0)