Skip to content

Very odd behaviour setting configuration with setDeviceConfig #22

@florisporro

Description

@florisporro

Not sure if this is a Macadam or Decklink specific issue, but figured I'd make an issue in-case someone else runs into this.

In short:

  • Calling macadam.setDeviceConfig(deviceConfig) to set a property directly
  • No errors are returned by setDeviceConfig
  • Calling macadam.getDeviceConfig(0) right after reveals the property is still at the old value
  • Calling setDeviceConfig property again with the same parameters will not fix the issue HOWEVER:
  • Calling setDeviceConfig property again with a different parameter will now set the parameter to what it was originally intended to be when the method was first called, but the second parameter will still be at the old value.

Right... Let's explain in more detail.

I'm trying to set output1080pAsPsF to true.

Whenever I call setDeviceConfig with that property on true, it remains its old value (false).

If I then call setDeviceConfig, setting a different property, it will then only set output1080pAsPsF to true leaving the old property at its old value. And so on,

Here's more of an example:

Initial getDeviceConfig

{
  type: 'configuration',
  deviceIndex: 0,
  ...,
  videoOutputMode: 1215312437,
  output1080pAsPsF: false,
  ...
}

Now we set the property:

await macadam.setDeviceConfig({
  deviceIndex: 0,
  output1080pAsPsF: true
})

Result of getDeviceConfig again

{
  type: 'configuration',
  deviceIndex: 0,
  videoOutputMode: 1215312437,
  output1080pAsPsF: false
}

Strange, try again

await macadam.setDeviceConfig({
  deviceIndex: 0,
  output1080pAsPsF: true
})

No luck

{
  type: 'configuration',
  deviceIndex: 0,
  videoOutputMode: 1215312437,
  output1080pAsPsF: false
}

Let's set a different property then

await macadam.setDeviceConfig({
  deviceIndex: 0,
  videoOutputMode: 1215312441,
  output1080pAsPsF: true
})

Now what in the actual Grant Petty

{
  type: 'configuration',
  deviceIndex: 0,
  videoOutputMode: 1215312437,
  output1080pAsPsF: true
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions