Skip to content

Commit

Permalink
πŸ§‘β€πŸ’» Fix type warning (MarlinFirmware#25149)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy-Big committed Jul 2, 2023
1 parent 7ff83f9 commit 74c8c1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/module/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3490,7 +3490,7 @@ void MarlinSettings::reset() {
#if ENABLED(DISTINCT_E_FACTORS)
constexpr float linAdvanceK[] = ADVANCE_K;
EXTRUDER_LOOP() {
const float a = linAdvanceK[_MAX(e, COUNT(linAdvanceK) - 1)];
const float a = linAdvanceK[_MAX(uint8_t(e), COUNT(linAdvanceK) - 1)];
planner.extruder_advance_K[e] = a;
TERN_(ADVANCE_K_EXTRA, other_extruder_advance_K[e] = a);
}
Expand Down

0 comments on commit 74c8c1b

Please sign in to comment.