Skip to content

Add minimum device version check #503

@jonnew

Description

@jonnew

Static device classes, e.g.

static class Headstage64ElectricalStimulator

Should contain a constant specifying the minimum require device version that is supported by the library. This has become a requirement since we have begun to implement gateware updates to devices since the this library has become public. In general, the minimum required version should be the lowest that is fully supported by the library. There should be an additional check added to these functions within ContextHelper.cs.

public static DeviceContext GetDeviceContext(this ContextTask context, uint address, Type expectedType)

public static DeviceContext GetDeviceContext(this DeviceInfo deviceInfo, Type expectedType)

(Not sure about second one, will need to think about it).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions