From 773e1c9ecca4828ba6cd0117be0b93abcbec8252 Mon Sep 17 00:00:00 2001 From: meggert Date: Sat, 4 Mar 2023 10:33:47 +0100 Subject: [PATCH] fixed UB on startup --- mission/devices/ImtqHandler.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mission/devices/ImtqHandler.h b/mission/devices/ImtqHandler.h index 419fad33..7bb16c42 100644 --- a/mission/devices/ImtqHandler.h +++ b/mission/devices/ImtqHandler.h @@ -107,10 +107,10 @@ class ImtqHandler : public DeviceHandlerBase { PoolEntry statusUptime = PoolEntry({0}); PoolEntry mgmCalEntry = PoolEntry(3); - PoolEntry dipoleXEntry = PoolEntry(0, false); - PoolEntry dipoleYEntry = PoolEntry(0, false); - PoolEntry dipoleZEntry = PoolEntry(0, false); - PoolEntry torqueDurationEntry = PoolEntry(0, false); + PoolEntry dipoleXEntry = PoolEntry({0}, false); + PoolEntry dipoleYEntry = PoolEntry({0}, false); + PoolEntry dipoleZEntry = PoolEntry({0}, false); + PoolEntry torqueDurationEntry = PoolEntry({0}, false); power::Switch_t switcher = power::NO_SWITCH; uint8_t commandBuffer[imtq::MAX_COMMAND_SIZE];