From d80b5111066ca0468e7afd818edec2c023e1ba20 Mon Sep 17 00:00:00 2001 From: thomasonw Date: Tue, 12 Jul 2016 07:43:53 -0700 Subject: [PATCH] Added to API -- Optional message lists Added two APIs to allow setting of SingleFrameMessages and FastPacketMessages arrays. Allows for extension (and editing) of supported messages. --- NMEA2000.cpp | 20 ++++++++++++-------- NMEA2000.h | 6 +++++- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/NMEA2000.cpp b/NMEA2000.cpp index a0485d35..94946f1b 100644 --- a/NMEA2000.cpp +++ b/NMEA2000.cpp @@ -69,20 +69,24 @@ void ClearSetCharBuf(const char *str, int MaxLen, char *buf) { if (str) SetCharBuf(str,MaxLen,buf); } + //***************************************************************************** -void SetMsgBuf(const unsigned long *msgs, int MaxLen, unsigned long* buf) { - for (int i=0; i