diff options
-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++]); } |