Skip to content

Multiple modules getMode not consistent #164

@d82k

Description

@d82k

Hello
I have two CC1101 modules connected to different pins to an ESP32 S2 mini.
they are both initialized as needed eg.
ELECHOUSE_cc1101.setModul(0);
ELECHOUSE_cc1101.addSpiPin(...);
ELECHOUSE_cc1101.addGDO(...);
[...]
ELECHOUSE_cc1101.SetRx();

I cannot query the module status properly.
as example if one is idle and one is set as RX, using
ELECHOUSE_cc1101.setModul(0);
status0 = ELECHOUSE_cc1101.getMode();
and
ELECHOUSE_cc1101.setModul(1);
status1 = ELECHOUSE_cc1101.getMode();

the status is for both module is set to RX.

similar if I stop one of the two eg:

ELECHOUSE_cc1101.setModul(0);
ELECHOUSE_cc1101.setSidle();

also module 1 with getMode() will report idle.

any ideas please?
Kind regards,
dk

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions