Skip to content

Commit 7f70642

Browse files
🐛 Fix LVGL / MKS WiFi long filename (MarlinFirmware#25483)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
1 parent c8793c0 commit 7f70642

File tree

5 files changed

+443
-420
lines changed

5 files changed

+443
-420
lines changed

Marlin/src/lcd/extui/mks_ui/tft_lvgl_configuration.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -298,10 +298,8 @@ void lv_fill_rect(lv_coord_t x1, lv_coord_t y1, lv_coord_t x2, lv_coord_t y2, lv
298298
W25QXX.init(SPI_QUARTER_SPEED);
299299
}
300300

301-
#define TICK_CYCLE 1
302-
303-
uint16_t getTickDiff(uint16_t curTick, uint16_t lastTick) {
304-
return TICK_CYCLE * (lastTick <= curTick ? (curTick - lastTick) : (0xFFFFFFFF - lastTick + curTick));
301+
uint16_t getTickDiff(const uint16_t curTick, const uint16_t lastTick) {
302+
return (TICK_CYCLE) * (lastTick <= curTick ? (curTick - lastTick) : (0xFFFFFFFF - lastTick + curTick));
305303
}
306304

307305
static bool get_point(int16_t *x, int16_t *y) {

0 commit comments

Comments
 (0)