Skip to content

setGainMode ignores automatic parameter #3

Description

@ConnorGibbons

Hi, while using this library I noticed that I was unable to set the gain mode via the setGainMode function.

int r = sendCommand(RTLTCP_SET_GAIN_MODE, gainMode ? 0 : 1);
I believe the issue is right there on line 438, the operation should be using the 'automatic' value instead of gainMode's.

Worth noting that gainMode is set to automatic's value at the end of the function, so a workaround is to call the function twice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions