We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb4754a commit 3ca3fdaCopy full SHA for 3ca3fda
examples/UnitUnified/UnitMiniScales/PlotToSerial/main/PlotToSerial.cpp
@@ -75,7 +75,7 @@ void loop()
75
if (unit.wasPressed()) {
76
static uint32_t cidx{};
77
unit.writeLEDColor((uint32_t)color_table[cidx]);
78
- cidx = ++cidx % m5::stl::size(color_table);
+ cidx = (cidx + 1) % m5::stl::size(color_table);
79
}
80
81
// Behavior when BtnA is clicked changes depending on the value.
0 commit comments