Skip to content

Commit

Permalink
Update ESPBalboaGL.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
netmindz authored Sep 17, 2024
1 parent bc5af6e commit e5702be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/BalboaGL/ESPBalboaGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ void BalboaGL::setup() {

ESP_LOGI(TAG, "Serial begin rx,tx = %u,%u", this->rx_pin, this->tx_pin);
hw_serial_->begin(115200, SERIAL_8N1, rx_pin, tx_pin);
hw_serial_->setHwFlowCtrlMode(HW_FLOWCTRL_DISABLE);
hw_serial_->setHwFlowCtrlMode(UART_HW_FLOWCTRL_RTS);
hw_serial_->setPins(this->rx_pin, this->tx_pin, -1, this->rts_pin);
hw_serial_->setMode(SerialMode.UART_MODE_RS485_HALF_DUPLEX);
// hw_serial_->setMode(UART_MODE_RS485_HALF_DUPLEX);
this->spa = new balboaGL(hw_serial_, rts_pin, panel_select_pin);
this->spa->attachPanelInterrupt();
if(delay_time > -1) this->spa->set_delay_time(delay_time);
Expand Down

0 comments on commit e5702be

Please sign in to comment.