diff --git a/firmware/application/ais_packet.cpp b/firmware/application/ais_packet.cpp index c212936d..7999a111 100644 --- a/firmware/application/ais_packet.cpp +++ b/firmware/application/ais_packet.cpp @@ -27,8 +27,6 @@ namespace ais { -using CRCFieldReader = ::FieldReader; - struct PacketLengthRange { constexpr PacketLengthRange( ) : min_bytes { 0 }, @@ -190,7 +188,7 @@ Longitude Packet::longitude(const size_t start_bit) const { } bool Packet::crc_ok() const { - CRCFieldReader field_crc { packet_ }; + CRCReader field_crc { packet_ }; CRC ais_fcs { 0x1021, 0xffff, 0xffff }; for(size_t i=0; i; + using CRCReader = FieldReader; const baseband::Packet packet_; const rtc::RTC received_at_;