Skip to content

Can't set pulseLength to 184 #68

@moledzki

Description

@moledzki

Hi,

I'm not able to set pulse length to 184 (or similar) value:

if (wiringPiSetup () == -1) { return 1; }
RCSwitch mySwitch = RCSwitch();
mySwitch.enableTransmit(0);
mySwitch.setProtocol(1);
mySwitch.setPulseLength(184);
mySwitch.send(BUTTON_1_ON_BINARY);

This code should theoretically sent particular binary code using protocol 1 and pulse length 184, but after executing it code with pulse 415 and protocol 5 is send.
If I change pulse length to ~284 or more - everything works as expected.

System info:
Raspberry Pi Model B Rev 2
Raspbian GNU/Linux 10 (buster)" Kernel 4.19.75+

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