You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was reading through the code and noticed that AsyncSerial.Signature contains AsyncSerialRX.Signature and AsyncSerialTX.Signature, and all three of them contains a member named divisor.
Furthermore, AsyncSerial assigns to the inner two:
This implies that they are effectively outputs, despite having a signature denoting them as inputs. I believe this will cause a driver conflict error if you attempt using wiring.connect() on either of the three interfaces.
This is not an immediate problem to me, as I only caught this on a read-through, but it seems like an anti-pattern that deserves some attention.
The text was updated successfully, but these errors were encountered:
I was reading through the code and noticed that
AsyncSerial.Signature
containsAsyncSerialRX.Signature
andAsyncSerialTX.Signature
, and all three of them contains a member nameddivisor
.Furthermore,
AsyncSerial
assigns to the inner two:This implies that they are effectively outputs, despite having a signature denoting them as inputs. I believe this will cause a driver conflict error if you attempt using
wiring.connect()
on either of the three interfaces.This is not an immediate problem to me, as I only caught this on a read-through, but it seems like an anti-pattern that deserves some attention.
The text was updated successfully, but these errors were encountered: