forked from arduino/ArduinoCore-mbed
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request arduino#962 from pennam/reduce-wifi-join-retry
Reduce the number of WiFi join retry to avoid watchdog reset
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From 42b018c12eb413383c6ae4f2432be9f0c2d9dbe9 Mon Sep 17 00:00:00 2001 | ||
From: pennam <[email protected]> | ||
Date: Mon, 17 Jun 2024 17:11:58 +0200 | ||
Subject: [PATCH] WHD: reduce the number of join retry | ||
|
||
--- | ||
.../drivers/emac/COMPONENT_WHD/interface/WhdSTAInterface.cpp | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/connectivity/drivers/emac/COMPONENT_WHD/interface/WhdSTAInterface.cpp b/connectivity/drivers/emac/COMPONENT_WHD/interface/WhdSTAInterface.cpp | ||
index 509a2c0981..c933203d36 100644 | ||
--- a/connectivity/drivers/emac/COMPONENT_WHD/interface/WhdSTAInterface.cpp | ||
+++ b/connectivity/drivers/emac/COMPONENT_WHD/interface/WhdSTAInterface.cpp | ||
@@ -260,7 +260,7 @@ nsapi_error_t WhdSTAInterface::connect() | ||
{ | ||
ScopedMutexLock lock(_iface_shared.mutex); | ||
|
||
-#define MAX_RETRY_COUNT ( 5 ) | ||
+#define MAX_RETRY_COUNT ( 1 ) | ||
int i; | ||
whd_result_t res; | ||
|
||
-- | ||
2.43.0 | ||
|