From 30df58f42c8e323b93abb8b4b66bd569a0a2ddbc Mon Sep 17 00:00:00 2001 From: Joerg Hoppe Date: Fri, 30 Aug 2019 13:38:34 +0200 Subject: [PATCH] fix baudrate bit width --- 10.02_devices/2_src/dl11w.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/10.02_devices/2_src/dl11w.hpp b/10.02_devices/2_src/dl11w.hpp index ea19985..a680a8e 100644 --- a/10.02_devices/2_src/dl11w.hpp +++ b/10.02_devices/2_src/dl11w.hpp @@ -155,7 +155,7 @@ public: false, "Linux serial port: \"ttyS1\" or \"ttyS2\""); parameter_unsigned_c baudrate = parameter_unsigned_c(this, "baudrate", "b", /*readonly*/ - false, "", "%d", "Baudrate: 110, 300, ... 38400", 38400, 10); + false, "", "%d", "Baudrate: 110, 300, ... 38400", 16, 10); // 40kbaud -> 25us bit polling period needed parameter_string_c mode = parameter_string_c(this, "mode", "m", /*readonly*/false, @@ -167,6 +167,8 @@ public: parameter_bool_c break_enable = parameter_bool_c(this, "break", "b", /*readonly*/false, "Enable BREAK transmission (M7856 SW4-1)"); + // + // background worker function void worker(unsigned instance) override; void worker_rcv(void);