Replace aos::SizedArray with absl::InlinedVector
Change-Id: I4dae096c5079afa3135e3a1cb7cb17e2789275e6
Signed-off-by: Tyler Chatow <tchatow@gmail.com>
diff --git a/motors/peripheral/uart.cc b/motors/peripheral/uart.cc
index 6e48320..0617e3f 100644
--- a/motors/peripheral/uart.cc
+++ b/motors/peripheral/uart.cc
@@ -70,7 +70,7 @@
// otherwise reading S1) before the final one. In practice, the FIFOs are so
// short on this part it probably won't help anything.
aos::SizedArray<char, 4> result;
- while (DataAvailable() && !result.full()) {
+ while (DataAvailable() && result.size() != result.capacity()) {
result.push_back(ReadCharacter());
}
return result;