Skip to content

Commit 3f1d844

Browse files
committed
Suggestions from coderabitai
1 parent a99227d commit 3f1d844

File tree

4 files changed

+6
-187
lines changed

4 files changed

+6
-187
lines changed

.vscode/tasks.TEMPLATE.json.bak

Lines changed: 0 additions & 184 deletions
This file was deleted.

targets/ESP32/CMakePresets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@
294294
"HAL_WP_USE_USB_CDC": "ON",
295295
"API_nanoFramework.Device.OneWire": "OFF",
296296
"API_nanoFramework.Device.Bluetooth": "ON",
297-
"API_nanoFramework.Networking.Thread": "OFF",
297+
"API_nanoFramework.Networking.Thread": "ON",
298298
"THREAD_DEVICE_TYPE": "FTD",
299299
"API_nanoFramework.Graphics": "ON",
300300
"GRAPHICS_DISPLAY": "Generic_SPI.cpp",

targets/ESP32/_IDF/sdkconfig.default.esp32s2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
1616
CONFIG_ESPTOOLPY_HEADER_FLASHSIZE_UPDATE=y
1717

1818
CONFIG_PARTITION_TABLE_CUSTOM=y
19-
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="targets/ESP32/_IDF/esp32s3/partitions_nanoclr_4mb.csv"
19+
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="targets/ESP32/_IDF/esp32s2/partitions_nanoclr_4mb.csv"
2020

2121
CONFIG_COMPILER_OPTIMIZATION_SIZE=y
2222
CONFIG_COMPILER_OPTIMIZATION_ASSERTIONS_DISABLE=y

targets/ESP32/_common/targetHAL_Network.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,10 @@ static void event_handler(void *arg, esp_event_base_t event_base, int32_t event_
386386
{
387387
// Create IPV6 link local address for ETH interface
388388
struct netif *netif = esp_netif_get_handle_from_ifkey("ETH_DEF")->lwip_netif;
389-
netif_create_ip6_linklocal_address(netif, 1);
389+
if (netif != NULL)
390+
{
391+
netif_create_ip6_linklocal_address(netif, 1);
392+
}
390393
}
391394
#endif
392395

0 commit comments

Comments
 (0)