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:
@@ -7,7 +7,7 @@ namespace Pins {
|
|||||||
|
|
||||||
bool PinOption::is(const char* option) const { return !::strcmp(option, _start); }
|
bool PinOption::is(const char* option) const { return !::strcmp(option, _start); }
|
||||||
|
|
||||||
PinOption PinOption ::operator++() {
|
PinOption& PinOption ::operator++() {
|
||||||
if (_start != _end) {
|
if (_start != _end) {
|
||||||
auto newStart = _start + ::strlen(_start); // to the \0
|
auto newStart = _start + ::strlen(_start); // to the \0
|
||||||
if (newStart != _end) { // and 1 past it if we're not at the end
|
if (newStart != _end) { // and 1 past it if we're not at the end
|
||||||
|
Reference in New Issue
Block a user