EasyFlash icon indicating copy to clipboard operation
EasyFlash copied to clipboard

The write function should not be called when the log remaining length is 0

Open childerxxx opened this issue 1 year ago • 0 comments

Hi armink,

It's better to add a "remaining length" check before this line. https://github.com/armink/EasyFlash/blob/f732982f71c015def3d5a84e72abcd4411ca1d9b/easyflash/src/ef_log.c#L681

For example: if (size - write_size == 0), then we should not call the ef_port_write() function.

I raised an issue to confirm whether it really needs to be modified or my usage method is wrong.

Looking forward to your reply.

childerxxx avatar May 05 '23 03:05 childerxxx