mirror of
https://github.com/markqvist/OpenModem.git
synced 2025-06-13 09:02:52 -04:00
Fixed KISS bug where frame checksum would be sent to host
This commit is contained in:
parent
d3e7fc1fc2
commit
c0b3e41166
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ void kiss_init(AX25Ctx *ax25, Afsk *afsk, Serial *ser) {
|
||||||
void kiss_messageCallback(AX25Ctx *ctx) {
|
void kiss_messageCallback(AX25Ctx *ctx) {
|
||||||
fputc(FEND, &serial->uart0);
|
fputc(FEND, &serial->uart0);
|
||||||
fputc(0x00, &serial->uart0);
|
fputc(0x00, &serial->uart0);
|
||||||
for (unsigned i = 0; i < ctx->frame_len; i++) {
|
for (unsigned i = 0; i < ctx->frame_len-2; i++) {
|
||||||
uint8_t b = ctx->buf[i];
|
uint8_t b = ctx->buf[i];
|
||||||
if (b == FEND) {
|
if (b == FEND) {
|
||||||
fputc(FESC, &serial->uart0);
|
fputc(FESC, &serial->uart0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue