From 2854c631388f6f16fb6e4f9da72f80f090bac442 Mon Sep 17 00:00:00 2001 From: Jan Horacek Date: Wed, 2 Mar 2022 19:16:35 +0100 Subject: [PATCH] Uni: always initialize whole config. --- src/modules/uni.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/uni.h b/src/modules/uni.h index 4eb672d..f49e248 100644 --- a/src/modules/uni.h +++ b/src/modules/uni.h @@ -7,9 +7,9 @@ constexpr size_t UNI_IO_CNT = 16; struct MtbUniConfig { - std::array outputsSafe; - std::array inputsDelay; // 0 = 0s, 1 = 0.1s, 15 = 1.5s, min=0, max=15 - uint16_t irs; + std::array outputsSafe = {0, }; + std::array inputsDelay = {0, }; // 0 = 0s, 1 = 0.1s, 15 = 1.5s, min=0, max=15 + uint16_t irs = 0; MtbUniConfig(const QJsonObject& json) { this->fromJson(json); } MtbUniConfig(const std::vector& mtbUsbData) { this->fromMtbUsb(mtbUsbData); }