-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
[TW#13144] uart_set_line_inverse() can not set mask back to 0 #673
Comments
What would be the use case for having it to clear again? I would have thought for a given hardware you either set it or don't depending on your physical layer hardware but never have to change it after you done your hardware initialisation. |
Possibly if you were talking on a multidrop rs485 bus and switching between different phy settings? |
Ok, if you have to change phys during run-time, then it is useful. Looking at the code it is intended to work, |
I'm adding IDF uart driver to nodemcu. I think someone may want to re-configure uart. Maybe a 485 bus, may be uart controlled by switches... @hwmaier I added some logs to uart_set_line_inverse(), it does return before clearing the register.
outputs:
|
You are right, this appears to be a bug. I think the logic should be:
|
Isn't that redundant though because if inverse_mask=0 the first test will be true |
Yes, so the test could be even more simplified. |
Hi @zelll , is this problem solved now? Can we close this issue? |
to be same as SPIFFS
As mentioned in #489 ,
uart_set_line_inverse()
does not allow a0
mask. Then there is not a way to clear line inverse. Is it a bug?The text was updated successfully, but these errors were encountered: