Skip to content

Definition for logging flush delay #49

@timov50

Description

@timov50

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-

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions