From 1ac3aa6e86b9418ed392cd62954b9bc97504d816 Mon Sep 17 00:00:00 2001 From: LordGrey Date: Fri, 21 Oct 2022 15:08:01 +0200 Subject: [PATCH] Serial LDEDDevices -Increase writeBlack to overcome issues on high baud rates --- libsrc/leddevice/dev_serial/ProviderRs232.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/leddevice/dev_serial/ProviderRs232.cpp b/libsrc/leddevice/dev_serial/ProviderRs232.cpp index f1298d2e..73a688e8 100644 --- a/libsrc/leddevice/dev_serial/ProviderRs232.cpp +++ b/libsrc/leddevice/dev_serial/ProviderRs232.cpp @@ -18,7 +18,7 @@ namespace { constexpr std::chrono::milliseconds WRITE_TIMEOUT{ 1000 }; // device write timeout in ms constexpr std::chrono::milliseconds OPEN_TIMEOUT{ 5000 }; // device open timeout in ms const int MAX_WRITE_TIMEOUTS = 5; // Maximum number of allowed timeouts - const int NUM_POWEROFF_WRITE_BLACK = 2; // Number of write "BLACK" during powering off + const int NUM_POWEROFF_WRITE_BLACK = 5; // Number of write "BLACK" during powering off constexpr std::chrono::milliseconds DEFAULT_IDENTIFY_TIME{ 500 };