Take out the CRLF (it was a buffer overrun anyway)
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user