alejoseb / Modbus-STM32-HAL-FreeRTOS

Modbus TCP and RTU, Master and Slave for STM32 using Cube HAL and FreeRTOS
GNU Lesser General Public License v2.1
579 stars 192 forks source link

Possible incorrect comment in ModbusStart function ? #113

Closed alanbontoft closed 2 months ago

alanbontoft commented 2 months ago

Hi

Can you confirm if there is an error in the comment? From the datasheet, low on DE puts transceiver in high impedance state, so this should read 'return RS485 transceiver to receive mode' ?

// return RS485 transceiver to transmit mode HAL_GPIO_WritePin(modH->EN_Port, modH->EN_Pin, GPIO_PIN_RESET);

alejoseb commented 2 months ago

Hi, yes the comment is wrong. Solved. Thanks