From 32cb370964c4ef01463a8768e0f3fdea6f171c36 Mon Sep 17 00:00:00 2001 From: "Hansi, dl9rdz" Date: Wed, 30 Dec 2020 12:02:57 +0100 Subject: [PATCH] MicroNMEA update compatibility by type inference --- RX_FSK/RX_FSK.ino | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/RX_FSK/RX_FSK.ino b/RX_FSK/RX_FSK.ino index 111ccf9..60c2f55 100644 --- a/RX_FSK/RX_FSK.ino +++ b/RX_FSK/RX_FSK.ino @@ -1117,8 +1117,14 @@ void initTouch() { char buffer[85]; MicroNMEA nmea(buffer, sizeof(buffer)); + + int lastCourse = 0; -void unkHandler(const MicroNMEA& nmea) { + +/// Arrg. MicroNMEA changes type definition... so lets auto-infer type +template +//void unkHandler(const MicroNMEA& nmea) { +void unkHandler(T nmea) { if (strcmp(nmea.getMessageID(), "VTG") == 0) { const char *s = nmea.getSentence(); while (*s && *s != ',') s++;