Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readBytesUntil from configured UARTDevice instead of Serial #96

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

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.

1 participant