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;