Make all the serialization code build for the Teensy too
Change-Id: Ib3442220581553d78bb30e42818203959d987d85
diff --git a/y2019/jevois/uart.cc b/y2019/jevois/uart.cc
index 0db59a5..3621da8 100644
--- a/y2019/jevois/uart.cc
+++ b/y2019/jevois/uart.cc
@@ -2,10 +2,15 @@
#include <array>
-#include "aos/logging/logging.h"
#include "aos/util/bitpacking.h"
#include "third_party/GSL/include/gsl/gsl"
#include "y2019/jevois/jevois_crc.h"
+#ifdef __linux__
+#include "aos/logging/logging.h"
+#else
+#define CHECK(...)
+#define CHECK_GE(...)
+#endif
namespace frc971 {
namespace jevois {
@@ -50,8 +55,7 @@
return result;
}
-tl::optional<Frame> UartUnpackToTeensy(
- gsl::span<const char> encoded_buffer) {
+tl::optional<Frame> UartUnpackToTeensy(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()) !=