1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-09-02 19:02:35 +02:00

Fixed signature of ++ operator

This commit is contained in:
Stefan de Bruijn
2020-10-22 20:34:52 +02:00
parent 9c788d650a
commit c1cc423572

View File

@@ -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