From cec916a44aee35fd60a795e2dfab3a04818cde27 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Fri, 26 Jun 2020 23:02:21 -0400 Subject: [PATCH] Fix SABM control field test macro --- include/patty/ax25/macros.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/patty/ax25/macros.h b/include/patty/ax25/macros.h index cb5a42a..426afc7 100644 --- a/include/patty/ax25/macros.h +++ b/include/patty/ax25/macros.h @@ -47,7 +47,7 @@ ((c & 0xe0) >> 5) #define PATTY_AX25_CONTROL_UNNUMBERED_SABM(c) \ - (((c & 0xe0) == 0x10) && ((c & 0x0f) == 0x0f)) + (((c & 0xe0) == 0x20) && ((c & 0x0f) == 0x0f)) #define PATTY_AX25_CONTROL_UNNUMBERED_DISC(c) \ (((c & 0xe0) == 0x20) && ((c & 0x0f) == 0x03))