mirror of
https://github.com/m5stack/M5PM1.git
synced 2026-05-20 11:49:32 -07:00
1. optimize partial compilation support
This commit is contained in:
@@ -490,7 +490,9 @@ m5pm1_err_t M5PM1::begin(i2c_port_t port, uint8_t addr, int sda, int scl, uint32
|
||||
.flags =
|
||||
{
|
||||
.enable_internal_pullup = true,
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 4, 0)
|
||||
.allow_pd = false,
|
||||
#endif
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user