Изменения на новый
This commit is contained in:
parent
547deea3c0
commit
709dd33cca
|
|
@ -40,7 +40,12 @@ static uint16_t vSerialPortHalfDuplexTransmit(tSerialPortHalfDuplex *io, uint8_t
|
||||||
|
|
||||||
uint16_t result = io->serialPortIo->transmit(io->serialPortIo->env, data, size, timeout);
|
uint16_t result = io->serialPortIo->transmit(io->serialPortIo->env, data, size, timeout);
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef HALF_DUPLEX_NO_DELAY
|
||||||
SystemDelayMs(5);
|
SystemDelayMs(5);
|
||||||
|
#else
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
GpioPinSet(io->transmitePin, false);
|
GpioPinSet(io->transmitePin, false);
|
||||||
GpioPinSet(io->recivePin, true);
|
GpioPinSet(io->recivePin, true);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue