Skip to content

LMS_ReadParam and LMS_WriteParam force the chip to channel A #402

Open

Description

@dmitrymmm

Both pass a hardcoded channel 0:

apiDevice->device->SetParameter(apiDevice->moduleIndex, 0, param.address, param.msb, param.lsb, val);

and LMS7002M_SDRDevice::Set/GetParameter begins with lms->SetActiveChannel(channel % 2 == 0 ? ChA : ChB), which writes the MAC register whenever the selection differs. Legacy LimeSuite wrote the parameter using the chip's current MAC selection, so code that selects channel B through MAC and then calls LMS_WriteParam now silently has its selection switched to channel A and the parameter applied to the wrong channel.

Activity

  1. dmitrymmm commented on Aug 3, 2026

    @dmitrymmm
    ContributorAuthor

    Fix submitted in #376

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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