Skip to content

Commit 3ca3fda

Browse files
committed
Fixes undefined operation
1 parent eb4754a commit 3ca3fda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/UnitUnified/UnitMiniScales/PlotToSerial/main/PlotToSerial.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void loop()
7575
if (unit.wasPressed()) {
7676
static uint32_t cidx{};
7777
unit.writeLEDColor((uint32_t)color_table[cidx]);
78-
cidx = ++cidx % m5::stl::size(color_table);
78+
cidx = (cidx + 1) % m5::stl::size(color_table);
7979
}
8080

8181
// Behavior when BtnA is clicked changes depending on the value.

0 commit comments

Comments
 (0)