Skip to content

readBytesUntil from configured UARTDevice instead of Serial#96

Open
andreanielsen83 wants to merge 1 commit intopsvanstrom:mainfrom
andreanielsen83:readBytesUntil
Open

readBytesUntil from configured UARTDevice instead of Serial#96
andreanielsen83 wants to merge 1 commit intopsvanstrom:mainfrom
andreanielsen83:readBytesUntil

Conversation

@andreanielsen83
Copy link

Reading lines from the P1 port using

          int len = Serial.readBytesUntil('\n', buffer, BUF_SIZE);

appears to be hardcoded to reading from RX instead of the configured rx_pin

uart:
  id: uart_bus
  rx_pin:
    number: GPIO6
    inverted: true
  baud_rate: 115200

Please note I haven't tested this change on a dev board, so cannot claim it is generic - but I think it is.

@cadwal
Copy link
Contributor

cadwal commented Mar 2, 2025

This is included in the current code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants