Merge pull request #273 from GullCode/spi_image_warning_fix

missing contructor
This commit is contained in:
Erwin Ried 2021-01-27 15:17:42 +01:00 committed by GitHub
commit 0d7aa1d32c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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];