Skip to content

Commit 75381fd

Browse files
authored
Merge pull request #878 from tobobo/patch-1
Allow refresh rate to be exactly m_cfg.min_refresh_rate
2 parents bc82706 + e676a16 commit 75381fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ bool MatrixPanel_I2S_DMA::setupDMA(const HUB75_I2S_CFG &_cfg)
108108

109109
ESP_LOGW("I2S-DMA", "lsbMsbTransitionBit of %d gives %d Hz refresh rate.", lsbMsbTransitionBit, actualRefreshRate);
110110

111-
if (actualRefreshRate > m_cfg.min_refresh_rate)
111+
if (actualRefreshRate >= m_cfg.min_refresh_rate)
112112
break;
113113

114114
if (lsbMsbTransitionBit < m_cfg.getPixelColorDepthBits() - 1)

0 commit comments

Comments
 (0)