diff --git a/firmware/util/containers/local_version_holder.cpp b/firmware/util/containers/local_version_holder.cpp index cc094f6b2b..91b9ba98d8 100644 --- a/firmware/util/containers/local_version_holder.cpp +++ b/firmware/util/containers/local_version_holder.cpp @@ -8,10 +8,6 @@ #include "local_version_holder.h" LocalVersionHolder::LocalVersionHolder() { - /** - * we want local version to be 'old' on instantiation - */ - localVersion = -1; } int LocalVersionHolder::getVersion() { diff --git a/firmware/util/containers/local_version_holder.h b/firmware/util/containers/local_version_holder.h index 2c3a117f8a..7e020545e0 100644 --- a/firmware/util/containers/local_version_holder.h +++ b/firmware/util/containers/local_version_holder.h @@ -27,7 +27,10 @@ public: int getVersion(); private: - int localVersion; + /** + * we want local version to be 'old' on instantiation + */ + int localVersion = -1; };