From 1c1d3e9897f2d8e80233ca20b24c6d49d2194633 Mon Sep 17 00:00:00 2001 From: GullCode Date: Wed, 27 Jan 2021 14:57:22 +0100 Subject: [PATCH] missing contructor --- firmware/common/spi_image.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/firmware/common/spi_image.hpp b/firmware/common/spi_image.hpp index 896340be..5ff88054 100644 --- a/firmware/common/spi_image.hpp +++ b/firmware/common/spi_image.hpp @@ -34,6 +34,7 @@ namespace portapack { namespace spi_flash { struct image_tag_t { + constexpr image_tag_t( ) : c { 0, 0, 0, 0 } { @@ -45,6 +46,14 @@ struct image_tag_t { { } + image_tag_t(const image_tag_t& other) + { + c[0] = other.c[0]; + c[1] = other.c[1]; + c[2] = other.c[2]; + c[3] = other.c[3]; + } + image_tag_t& operator=(const image_tag_t& other) { c[0] = other.c[0]; c[1] = other.c[1];