Type fixes to uart.h (take span)

Change-Id: Icde8dc0c8a7411f7ba876bd364a7911f993d0ec0
diff --git a/y2019/jevois/uart.cc b/y2019/jevois/uart.cc
index e3520a4..0db59a5 100644
--- a/y2019/jevois/uart.cc
+++ b/y2019/jevois/uart.cc
@@ -51,7 +51,7 @@
 }
 
 tl::optional<Frame> UartUnpackToTeensy(
-    const UartToTeensyBuffer &encoded_buffer) {
+    gsl::span<const char> encoded_buffer) {
   std::array<char, uart_to_teensy_size()> buffer;
   if (static_cast<size_t>(
           CobsDecode<uart_to_teensy_size()>(encoded_buffer, &buffer).size()) !=
@@ -138,7 +138,7 @@
 }
 
 tl::optional<CameraCalibration> UartUnpackToCamera(
-    const UartToCameraBuffer &encoded_buffer) {
+    gsl::span<const char> encoded_buffer) {
   std::array<char, uart_to_camera_size()> buffer;
   if (static_cast<size_t>(
           CobsDecode<uart_to_camera_size()>(encoded_buffer, &buffer).size()) !=
diff --git a/y2019/jevois/uart.h b/y2019/jevois/uart.h
index 8244fdb..87dcc97 100644
--- a/y2019/jevois/uart.h
+++ b/y2019/jevois/uart.h
@@ -29,11 +29,11 @@
     aos::SizedArray<char, CobsMaxEncodedSize(uart_to_camera_size())>;
 
 UartToTeensyBuffer UartPackToTeensy(const Frame &message);
-tl::optional<Frame> UartUnpackToTeensy(const UartToTeensyBuffer &buffer);
+tl::optional<Frame> UartUnpackToTeensy(gsl::span<const char> buffer);
 
 UartToCameraBuffer UartPackToCamera(const CameraCalibration &message);
 tl::optional<CameraCalibration> UartUnpackToCamera(
-    const UartToCameraBuffer &buffer);
+    gsl::span<const char> buffer);
 
 }  // namespace jevois
 }  // namespace frc971