Take out the CRLF (it was a buffer overrun anyway)

This commit is contained in:
Douglas Clowes
2014-06-13 17:50:34 +10:00
parent f2d051e2a5
commit 84dfd1f50b

View File

@ -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;
}