Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compiler warning and potential string buffer overflow #26550

Merged
merged 10 commits into from
Dec 25, 2023
Prev Previous commit
Next Next commit
Update marlinui.cpp. Fixed extra closing parenthesis
Extra closing parenthesis removed
  • Loading branch information
soligen2010 authored Dec 19, 2023
commit 017d199d0eb4db6a6e53f5923a6f93dfc601efec
6 changes: 3 additions & 3 deletions Marlin/src/lcd/marlinui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1036,9 +1036,9 @@ void MarlinUI::init() {

#if ENCODER_PULSES_PER_STEP > 1
#if HAS_TOUCH_SLEEP
static int8_t lastEncoderDiff);
if (lastEncoderDiff != encoderDiff) wakeup_screen());
lastEncoderDiff = encoderDiff);
static int8_t lastEncoderDiff;
if (lastEncoderDiff != encoderDiff) wakeup_screen();
lastEncoderDiff = encoderDiff;
#endif
#endif

Expand Down