From 45b874694ea704165390dfab2ba2a003e9d9cc4d Mon Sep 17 00:00:00 2001 From: GullCode Date: Wed, 27 Jan 2021 16:36:44 +0100 Subject: [PATCH] Added missing default constructor --- firmware/common/ais_packet.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/firmware/common/ais_packet.hpp b/firmware/common/ais_packet.hpp index 47bf902ef..eabd88d2d 100644 --- a/firmware/common/ais_packet.hpp +++ b/firmware/common/ais_packet.hpp @@ -42,6 +42,7 @@ struct DateTime { template struct LatLonBase { + constexpr LatLonBase( ) : LatLonBase { raw_not_available } { @@ -58,6 +59,8 @@ struct LatLonBase { ) : raw_ { other.raw_ } { } + + LatLonBase& operator=( const LatLonBase &)=default; int32_t normalized() const { return static_cast(raw() << sign_extend_shift) / (1 << sign_extend_shift);