Skip to content

Conversation

@jjcarrier
Copy link
Owner

@jjcarrier jjcarrier commented Aug 17, 2025

Notable changes:

  • Adds a consistency check including hash and non-volatile configured state into to aliased devices.
  • An aliased device can be created via --serial <serial_number> "my_alias"
  • Fixed additional regression in Incorrect setpoint reporting #40.
  • Improved error reporting behavior. While far from perfect, error reporting has been improved to better respect the --json argument. This however there are other edge cases like invalid/unknown arguments which are not part of the command processor and will still output non-json output. A future update may address this but is not a particularly high priority.

The volatile state of a preset applies only to the voltage/current.
It does not apply to OVP/OCP.
This feature allows a user to specify a pre-computed hash and the
related system parameters and presets that make up the configurable
non-volatile configured state of a device. This information allows the
application to assist in detecting unexpected changes to a device's
configured state, potentially preventing output states that may cause
harm.

This commit also introduces a schema for validation.
At the present time, schema validation against this file is a
user-invoked action. A powershell command such as the following may be
used by the user to validate (from the same directory as the
application binary):

Test-Json -Path $env:LOCALAPPDATA\jjcarrier\vicon\vicon.settings.json `
          -SchemaFile vicon.settings.schema.json
Added a guard against accessing out-of-bounds array element.

Also added a guard against showing json output. This logic still
needs improving; when --json/--json-list is set, some of the error
messages may need to be wrapped into json messages.
NOTE: currently these arguments are not protected against out-of-range values.
This should be resolved in a future rework of the CLI handling logic.

The model may be used to facilitate this or logic built into a CLI arg framework like
Spectre's or System.CommandLine's.
Allows the user to quickly create or update an aliased device.
For reasons not clearly understood, there have been recent
issues with the application hiding the cursor after the prompt
for selecting a DP100 (when multiple are connected). This change
forces the cursor to be hidden regardless of whether the alt-buffer
had already been entered or not.
Prevents out of bounds exceptions.
@jjcarrier jjcarrier added bug Something isn't working enhancement New feature or request labels Aug 17, 2025
@jjcarrier jjcarrier merged commit e7d8f24 into main Aug 17, 2025
6 checks passed
@jjcarrier jjcarrier deleted the dev branch August 17, 2025 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants