From 1e8266f7a67d811f23f3ac8bbec034d845728fa2 Mon Sep 17 00:00:00 2001 From: Yuichi Nakamura Date: Tue, 22 Aug 2023 23:52:28 +0900 Subject: [PATCH] Fix serial parameter setting --- driver/serremote.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/driver/serremote.c b/driver/serremote.c index bc5f45a..d39d900 100644 --- a/driver/serremote.c +++ b/driver/serremote.c @@ -374,6 +374,9 @@ void interrupt(void) baudstr = "38400"; } + // stop 1 / nonparity / 8bit / nonxoff + _iocs_set232c(0x4c00 | bdset); + if (resmode != 0) { // サーバが応答するか確認する struct cmd_check cmd; cmd.command = req->command; @@ -395,9 +398,6 @@ void interrupt(void) extern char _end; req->attr = 1; /* Number of units */ req->addr = &_end; - - // stop 1 / nonparity / 8bit / nonxoff - _iocs_set232c(0x4c00 | bdset); break; }