diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-04-23 17:22:56 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-04-23 17:22:56 +0200 |
commit | d2c8f124e60e486d50b346a79f7220cbf443cc6f (patch) | |
tree | 4cbb86d481991dce19ca9eef8196c275bc40200b /gatchat/gathdlc.c | |
parent | 2a609f9054147e7ee64e084ded8a38a4cc392501 (diff) | |
download | ofono-d2c8f124e60e486d50b346a79f7220cbf443cc6f.tar.bz2 |
Use HDLC_FCS helper where possible
Diffstat (limited to 'gatchat/gathdlc.c')
-rw-r--r-- | gatchat/gathdlc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gatchat/gathdlc.c b/gatchat/gathdlc.c index fcf53162..4ce6c610 100644 --- a/gatchat/gathdlc.c +++ b/gatchat/gathdlc.c @@ -344,7 +344,7 @@ gboolean g_at_hdlc_send(GAtHDLC *hdlc, const unsigned char *data, gsize size) pos = 0; while (size--) { - fcs = crc_ccitt_byte(fcs, data[i]); + fcs = HDLC_FCS(fcs, data[i]); hdlc_put(hdlc, buf, &pos, data[i++]); } |