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;
diff --git a/motors/print/usb.h b/motors/print/usb.h
index 1ed1bee..c2224d2 100644
--- a/motors/print/usb.h
+++ b/motors/print/usb.h
@@ -30,7 +30,7 @@
 
   aos::SizedArray<char, 4> ReadStdin() override {
     aos::SizedArray<char, 4> result;
-    result.set_size(stdout_tty_->Read(result.data(), result.max_size()));
+    result.resize(stdout_tty_->Read(result.data(), result.capacity()));
     return result;
   }
 
@@ -58,7 +58,7 @@
 
   aos::SizedArray<char, 4> ReadStdin() override {
     aos::SizedArray<char, 4> result;
-    result.set_size(stdout_tty_.Read(result.data(), result.max_size()));
+    result.resize(stdout_tty_.Read(result.data(), result.capacity()));
     return result;
   }