Skip to content

fix: clean up unused using directives and add firmware version check …#1414

Merged
ndorin merged 1 commit into
mainfrom
fix/debug-on-cslan-and-fw-dependency-check
May 5, 2026
Merged

fix: clean up unused using directives and add firmware version check …#1414
ndorin merged 1 commit into
mainfrom
fix/debug-on-cslan-and-fw-dependency-check

Conversation

@ndorin
Copy link
Copy Markdown
Contributor

@ndorin ndorin commented May 5, 2026

This pull request introduces a minimum firmware version check to the ControlSystem class in PepperDash.Essentials, ensuring that the application only runs on supported firmware. Additionally, it improves the logic for determining the WebSocket URL in dual-stack environments and performs a minor cleanup in the Debug.cs file.

Firmware version enforcement:

  • Added a minimumFirmwareVersion constant and logic in ControlSystem.InitializeSystem() to check the device firmware version at startup. If the firmware is below the required version (2.8006.00110), the system logs a fatal error and halts initialization. This prevents the application from running on unsupported hardware. [1] [2]

Networking improvements:

  • Updated the Url property in DebugWebsocketSink to ignore invalid CSLAN IP addresses (e.g., "Invalid Value") and reliably select a reachable IP address in dual-stack environments.

Code cleanup:

  • Removed an unnecessary using System.Net; directive from Debug.cs to tidy up unused imports.…in ControlSystem

…in ControlSystem

Co-authored-by: Copilot <copilot@github.com>
@ndorin ndorin requested review from andrew-welker and Copilot May 5, 2026 16:56
@ndorin ndorin merged commit 1ecfca7 into main May 5, 2026
4 of 6 checks passed
@ndorin ndorin deleted the fix/debug-on-cslan-and-fw-dependency-check branch May 5, 2026 16:58
@ndorin ndorin review requested due to automatic review settings May 5, 2026 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants