From 36c9feaf3fec954223416165640a1425823b7595 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Thu, 6 Oct 2022 17:01:04 +0200 Subject: [PATCH] parity helps for some reason --- linux/ObjectFactory.cpp | 1 + mission/devices/ScexDeviceHandler.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/linux/ObjectFactory.cpp b/linux/ObjectFactory.cpp index 5c735983..392d129a 100644 --- a/linux/ObjectFactory.cpp +++ b/linux/ObjectFactory.cpp @@ -328,6 +328,7 @@ void ObjectFactory::createScexComponents(std::string uartDev, PowerSwitchIF* pwr std::optional switchId) { auto* cookie = new UartCookie(objects::SCEX, uartDev, uart::SCEX_BAUD, 4096); cookie->setTwoStopBits(); + cookie->setParityEven(); auto scexUartReader = new ScexUartReader(objects::SCEX_UART_READER); auto scexHandler = new ScexDeviceHandler(objects::SCEX, *scexUartReader, cookie, mountedIF); if (onImmediately) { diff --git a/mission/devices/ScexDeviceHandler.h b/mission/devices/ScexDeviceHandler.h index eba813be..1c96618e 100644 --- a/mission/devices/ScexDeviceHandler.h +++ b/mission/devices/ScexDeviceHandler.h @@ -20,7 +20,7 @@ class ScexDeviceHandler : public DeviceHandlerBase { private: static constexpr uint32_t LONG_CD = 180 * 1000; - static constexpr uint32_t SHORT_CD = 18000; + static constexpr uint32_t SHORT_CD = 12000; std::array cmdBuf = {}; std::optional switchId;