Skip to content

Commit

Permalink
🐛 Fix LVGL / MKS WiFi long filename (MarlinFirmware#25483)
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Lahteine <[email protected]>
  • Loading branch information
2 people authored and Tracy Spiva committed May 25, 2023
1 parent b2696b9 commit 71d1ad8
Show file tree
Hide file tree
Showing 5 changed files with 443 additions and 420 deletions.
6 changes: 2 additions & 4 deletions Marlin/src/lcd/extui/mks_ui/tft_lvgl_configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
W25QXX.init(SPI_QUARTER_SPEED);
}

#define TICK_CYCLE 1

uint16_t getTickDiff(uint16_t curTick, uint16_t lastTick) {
return TICK_CYCLE * (lastTick <= curTick ? (curTick - lastTick) : (0xFFFFFFFF - lastTick + curTick));
uint16_t getTickDiff(const uint16_t curTick, const uint16_t lastTick) {
return (TICK_CYCLE) * (lastTick <= curTick ? (curTick - lastTick) : (0xFFFFFFFF - lastTick + curTick));
}

static bool get_point(int16_t *x, int16_t *y) {
Expand Down
Loading

0 comments on commit 71d1ad8

Please sign in to comment.