Skip to content

Commit

Permalink
Merge pull request #580 from WildernessLabs/enhance-deadlocks-report
Browse files Browse the repository at this point in the history
Enhance deadlock report messages
  • Loading branch information
ctacke authored Sep 26, 2024
2 parents d182233 + fe52cb3 commit a7efc7e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ internal Esp32SystemErrorInfo(int function, StatusCodes statusCode)
StatusCodes.InvalidConfigurationFile => "Invalid configuration file",
StatusCodes.InvalidWiFiConfigurationFile => "Invalid WiFi configuration file",
StatusCodes.InvalidCellConfigurationFile => "Invalid Cell configuration file",
StatusCodes.NetworkDeadlock => "Network deadlock detected. Device reboot is required to reconnect",
StatusCodes.NetworkDeadlock => "Possible network deadlock detected. Device reboot is advised to reconnect",
StatusCodes.NetworkCloseDeadlock => "Possible network deadlock on close() detected. Device reboot is advised to reconnect",
StatusCodes.NetworkPollDeadlock => "Possible network deadlock on poll() detected. Device reboot is advised to reconnect",
StatusCodes.NetworkSocketDeadlock => "Possible network deadlock on socket() detected. Device reboot is advised to reconnect",
_ => "ESP32 Error"
},
SystemErrorNumber.CoprocessorError)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,22 @@ public enum StatusCodes
/// </summary>
InvalidCellConfigurationFile = 45,
/// <summary>
/// Network deadlock detected.
/// Possible network deadlock detected.
/// </summary>
NetworkDeadlock = 46,
/// <summary>
/// Possible network deadlock detected on close().
/// </summary>
NetworkCloseDeadlock = 47,
/// <summary>
/// Possible network deadlock detected on poll().
/// </summary>
NetworkPollDeadlock = 48,
/// <summary>
/// Possible network deadlock detected on socket().
/// </summary>
NetworkSocketDeadlock = 49,

/// <summary>
/// ESP reset for unknown reason
/// </summary>
Expand Down

0 comments on commit a7efc7e

Please sign in to comment.