Merge pull request #2758 from SakuraForce/bugfix/rt-thread_hw_i2c

fix: Build error under rt-thread using only U8G2_USE_HW_I2C
This commit is contained in:
olikraus authored and GitHub committed 2026-03-08 08:53:44 +01:00
commit d5f9ad6a6c
1 file changed
+2 -1
+2 -1
View File
@@ -9,7 +9,7 @@ static struct rt_i2c_bus_device *i2c_bus = RT_NULL;
#if defined U8G2_USE_HW_SPI
static struct rt_spi_device u8g2_spi_dev;
#endif
static inline void u8g2_port_pin_mode(uint8_t pin, rt_uint8_t mode)
{
@@ -37,6 +37,7 @@ static inline int u8g2_port_pin_read(uint8_t pin)
return 0;
}
#if defined U8G2_USE_HW_SPI
int rt_hw_spi_config(uint8_t spi_mode, uint32_t max_hz, uint8_t cs_pin )
{
rt_err_t res;