From 84dfd1f50b4895d44bc36366e64e67cd705e9437 Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Fri, 13 Jun 2014 17:50:34 +1000 Subject: [PATCH] Take out the CRLF (it was a buffer overrun anyway) --- site_ansto/hardsup/omron_asyncprotocol.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/site_ansto/hardsup/omron_asyncprotocol.c b/site_ansto/hardsup/omron_asyncprotocol.c index 05d6556c..dfea149e 100644 --- a/site_ansto/hardsup/omron_asyncprotocol.c +++ b/site_ansto/hardsup/omron_asyncprotocol.c @@ -120,9 +120,7 @@ static int OMRON_PrepareTxn(pAsyncProtocol p, pAsyncTxn txn, const char* cmd, in txn->out_buf[0] = STX; txn->out_buf[cmd_len + 1] = ETX; txn->out_buf[cmd_len + 2] = calc_bcc(txn->out_buf); - txn->out_buf[cmd_len + 3] = 0x0D; - txn->out_buf[cmd_len + 4] = 0x0A; - txn->out_len = cmd_len + 5; + txn->out_len = cmd_len + 3; return 1; }