Skip to content

Commit

Permalink
fixed issue #297 with hardwaremode render (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
kauezatarin authored Jan 30, 2024
1 parent 0861997 commit 560fa1d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/FastLEDController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,13 @@ bool FastLEDController::renderColorWave(ChannelData& channelData, LEDGroup& grou
}

bool FastLEDController::renderStatic(ChannelData& channelData, LEDGroup& group, int groupLedCount) {
fill_solid(&channelData.leds[group.ledIndex], groupLedCount, group.color1);
return true;
int duration = applySpeed(100, group.speed);
int count = animation_step_count(duration, 1);
if (count > 0) {
fill_solid(&channelData.leds[group.ledIndex], groupLedCount, group.color1);
return true;
}
return false;
}

bool FastLEDController::renderTemperature(ChannelData& channelData, LEDGroup& group, int groupLedCount) {
Expand Down

0 comments on commit 560fa1d

Please sign in to comment.