Skip to content

Commit

Permalink
Uni: always initialize whole config.
Browse files Browse the repository at this point in the history
  • Loading branch information
horacekj committed Mar 2, 2022
1 parent bdd3c91 commit 2854c63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/uni.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
constexpr size_t UNI_IO_CNT = 16;

struct MtbUniConfig {
std::array<uint8_t, UNI_IO_CNT> outputsSafe;
std::array<size_t, UNI_IO_CNT> inputsDelay; // 0 = 0s, 1 = 0.1s, 15 = 1.5s, min=0, max=15
uint16_t irs;
std::array<uint8_t, UNI_IO_CNT> outputsSafe = {0, };
std::array<size_t, UNI_IO_CNT> 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<uint8_t>& mtbUsbData) { this->fromMtbUsb(mtbUsbData); }
Expand Down

0 comments on commit 2854c63

Please sign in to comment.