Skip to content

Commit

Permalink
t-hmi: SD_FREQENCY for everyone
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicpsyop committed Jun 4, 2024
1 parent e089634 commit c77aea6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/drivers/devices/lilygoT_HMI.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

#define TOUCH_ENABLE (1)
#define SDMMC_1BIT_FIX (1)
#define SD_FREQUENCY (20000)
#ifndef TFT_BL
// XXX - defined in User_Setups/Setup207_LilyGo_T_HMI.h:37
#define TFT_BL (38) // LED back-light
Expand Down
4 changes: 2 additions & 2 deletions src/drivers/storage/SDCard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ bool SDCard::initSDcard()
#elif defined (BUILD_SDMMC_1)
#warning SDMMC : 1 - bit mode is not always working. If you experience issues, try other modes.
iSD_->setPins(SDMMC_CLK, SDMMC_CMD, SDMMC_D0);
#ifdef NERDMINER_T_HMI
#ifdef SD_FREQUENCY
// Need to lower frequency to 20000 for proper detection
cardInitialized_ = iSD_->begin("/sd", true, false, 20000);
cardInitialized_ = iSD_->begin("/sd", true, false, SD_FREQUENCY);
#else
cardInitialized_ = iSD_->begin("/sd", true);
#endif
Expand Down

0 comments on commit c77aea6

Please sign in to comment.