diff --git a/application.c b/application.c index 1e681ae..11ffd12 100644 --- a/application.c +++ b/application.c @@ -496,7 +496,7 @@ static void command_monitor(void* argument) const bool pin = (port & channel_pins[i]); // get the pin level on which the channel is if (pin != channels_level[i]) { // data on this channel changed channel_changed = true; // remember one channel changed - channels_changed[i]++; // remember how many times this channel changed + channels_changed[i] = addu8_safe(channels_changed[i], 1); // remember how many times this channel changed channels_level[i] = pin; // save new level } }