Adjust the duration of the BIND pulse

Some DSMX Remote Receiver can't enter BIND mode with the duration about 25us but 120us.
This commit is contained in:
cctsao1008
2015-06-30 00:21:47 +08:00
parent ce45695915
commit e9d5978165
+2 -2
View File
@@ -292,9 +292,9 @@ dsm_bind(uint16_t cmd, int pulses)
/*Pulse RX pin a number of times*/
for (int i = 0; i < pulses; i++) {
up_udelay(25);
up_udelay(120);
stm32_gpiowrite(usart1RxAsOutp, false);
up_udelay(25);
up_udelay(120);
stm32_gpiowrite(usart1RxAsOutp, true);
}
break;