From e873dc98ea870d137e5fdf5f254ccd579cd3dd1b Mon Sep 17 00:00:00 2001 From: Tom Early Date: Wed, 6 Feb 2019 12:22:03 -0700 Subject: [PATCH] fix for no version report? --- QnetModem.cpp | 2 +- QnetModem.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/QnetModem.cpp b/QnetModem.cpp index ef55ed0..4e8c02b 100644 --- a/QnetModem.cpp +++ b/QnetModem.cpp @@ -119,7 +119,7 @@ bool CQnetModem::GetVersion() hardwareType = HWT_UNKNOWN; } - printf("MMDVM protocol version: %u, Modem: %s", frame.protocol, frame.version); + printf("MMDVM protocol version: %u, Modem: %s", (unsigned int)frame.protocol, frame.version); return false; } } diff --git a/QnetModem.h b/QnetModem.h index 0e77ab4..0ba29fc 100644 --- a/QnetModem.h +++ b/QnetModem.h @@ -62,7 +62,7 @@ typedef struct version_tag { unsigned char length; unsigned char type; unsigned char protocol; - unsigned char version[252]; + unsigned char version[251]; } SVERSION; typedef struct mmodem_tag {