Skip to content

Commit baa88d2

Browse files
committed
[rtt] Fix getSize implementation
1 parent 9d33843 commit baa88d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modm/platform/uart/rtt/rtt.cpp.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ struct RttBuffer
4949
{
5050
const uint32_t rhead{head};
5151
const uint32_t rtail{tail};
52-
return ((rhead >= rtail) ? 0 : size) + rhead - rtail;
52+
return ((rhead > rtail) ? 0 : size) + rhead - rtail;
5353
}
5454
} modm_packed;
5555

0 commit comments

Comments
 (0)