ninjablocks / 433Utils

433Kit is a collection of code and documentation designed to assist you in the connection and usage of RF 433MHz transmit and receive modules to/with your Arduino and Rapberry Pi.
ninjablocks.com
MIT License
903 stars 335 forks source link

Can't set pulseLength to 184 #68

Open moledzki opened 5 years ago

moledzki commented 5 years ago

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+