From b0c09457990afda90a95a252637fa2373ee69421 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Sat, 9 Feb 2019 09:14:05 -0700 Subject: [PATCH] added missing copy assignment operator --- QnetModem.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/QnetModem.h b/QnetModem.h index ac58555..9251ea0 100644 --- a/QnetModem.h +++ b/QnetModem.h @@ -161,6 +161,11 @@ public: memcpy(&frame.start, from.data(), from.size()); } + CFrame &operator=(const CFrame &from) { + memcpy(&frame.start, from.data(), from.size()); + return *this; + } + ~CFrame() {} size_t size() const { return (size_t)frame.length; }