From c1cc423572e3b7f2c5e5253548809de9d00aac6e Mon Sep 17 00:00:00 2001 From: Stefan de Bruijn Date: Thu, 22 Oct 2020 20:34:52 +0200 Subject: [PATCH] Fixed signature of ++ operator --- Grbl_Esp32/src/Pins/PinOptionsParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Grbl_Esp32/src/Pins/PinOptionsParser.cpp b/Grbl_Esp32/src/Pins/PinOptionsParser.cpp index 924bd631..17ec7366 100644 --- a/Grbl_Esp32/src/Pins/PinOptionsParser.cpp +++ b/Grbl_Esp32/src/Pins/PinOptionsParser.cpp @@ -7,7 +7,7 @@ namespace Pins { bool PinOption::is(const char* option) const { return !::strcmp(option, _start); } - PinOption PinOption ::operator++() { + PinOption& PinOption ::operator++() { if (_start != _end) { auto newStart = _start + ::strlen(_start); // to the \0 if (newStart != _end) { // and 1 past it if we're not at the end