Added a line-break after each "if" to get more accurate coverage report

This commit is contained in:
Benoit Blanchon
2020-02-16 15:05:23 +01:00
parent 8f8c82d400
commit 0814fc185f
38 changed files with 429 additions and 214 deletions

View File

@@ -43,7 +43,8 @@ struct BoundedReader<const __FlashStringHelper*, void> {
size_t readBytes(char* buffer, size_t length) {
size_t available = static_cast<size_t>(_end - _ptr);
if (available < length) length = available;
if (available < length)
length = available;
memcpy_P(buffer, _ptr, length);
_ptr += length;
return length;