mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
Remove a check in room() for (_begin == _end). It's covered by the (_end >= _begin) case.
This commit is contained in:
parent
7133a6c1f9
commit
d8417c2855
@ -42,9 +42,6 @@ class cbuf {
|
||||
if(_end >= _begin) {
|
||||
return _size - (_end - _begin) - 1;
|
||||
}
|
||||
if(_begin == _end) {
|
||||
return _size;
|
||||
}
|
||||
return _begin - _end - 1;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user