Fix for RX memory collision

pull/4/head
Mark Qvist 2015-01-18 18:09:52 +01:00
rodzic b858936e3e
commit 78cbd8d210
2 zmienionych plików z 8 dodań i 1 usunięć

Wyświetl plik

@ -49,7 +49,11 @@ static void ax25_decode(AX25Ctx *ctx) {
msg.len = ctx->frame_len - 2 - (buf - ctx->buf);
msg.info = buf;
if (ctx->hook) ctx->hook(&msg);
if (ctx->hook) {
cli();
ctx->hook(&msg);
sei();
}
}

Wyświetl plik

@ -18,6 +18,9 @@
// You always need to include this function. It will
// get called by the library every time a packet is
// received, so you can process incoming packets.
//
// If you are only interested in receiving, you should
// just leave this function empty.
//
// IMPORTANT! This function is called from within an
// interrupt. That means that you should only do things