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

Definition for logging flush delay #49

Open
timov50 opened this issue Apr 8, 2022 · 0 comments
Open

Definition for logging flush delay #49

timov50 opened this issue Apr 8, 2022 · 0 comments

Comments

@timov50
Copy link

timov50 commented Apr 8, 2022

Hi,

It is possible to define baudrate for logging but flush delay is defined for fixed 115200 baudrate.

/** Time to flush Usart buffer in ms (buffer is 512 bytes,
 *  so ~45ms to flush full buffer).
 */
#define FLUSH_DELAY_MS 45

Could it be possible to define the flush delay so that it is calculated based on defined baudrate?
Something like this:

#define FLUSH_DELAY_MS (45 * 115200.0 / DEBUG_LOG_UART_BAUDRATE)

-timo-

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

No branches or pull requests

1 participant