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
queue size could be made configurable or as a ::WithSize type of implementation.
Some modules (EchoOnSerial for instance) perform all the handling on interrupt. In a "normal" situation where CPU speed is high and baudrate is slow this is fine. However, once your baudrate is high enough bytes will be missed.
There are two ways to tackle such situation. Adapt EchoOnSerial to not process the bytes on interrupt and do the receive queue manually. Or by adding a decorater like the above. The latter having my preference as this class is versatile enough that it could be used for other situations as well.
The text was updated successfully, but these errors were encountered:
I have a suggestion to add to EmIL:
queue size could be made configurable or as a
::WithSize
type of implementation.Some modules (EchoOnSerial for instance) perform all the handling on interrupt. In a "normal" situation where CPU speed is high and baudrate is slow this is fine. However, once your baudrate is high enough bytes will be missed.
There are two ways to tackle such situation. Adapt EchoOnSerial to not process the bytes on interrupt and do the receive queue manually. Or by adding a decorater like the above. The latter having my preference as this class is versatile enough that it could be used for other situations as well.
The text was updated successfully, but these errors were encountered: