Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very odd behaviour setting configuration with setDeviceConfig #22

Open
florisporro opened this issue Apr 8, 2020 · 0 comments
Open

Comments

@florisporro
Copy link

florisporro commented Apr 8, 2020

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
}
@florisporro florisporro changed the title setDeviceConfig doesn't set all properties right Very odd behaviour setting configuration with setDeviceConfig Apr 8, 2020
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

No branches or pull requests

1 participant