Block until host has read all pending data.
The flush operation will not fail, but might not succeed in flushing all pending data. It is
implemented as a “best effort” operation.
This calls the method flush of the used “global Logger”. The logger is likely provided by
defmt-rtt or defmt-itm.