From 37d55c2fa88064fcbb18f3a287dc8286a08d5d87 Mon Sep 17 00:00:00 2001 From: onexs-xsi <850559025@qq.com> Date: Tue, 12 May 2026 13:48:41 +0800 Subject: [PATCH] 1. optimize partial compilation support --- src/M5PM1.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/M5PM1.cpp b/src/M5PM1.cpp index 4a65594..6011ea8 100644 --- a/src/M5PM1.cpp +++ b/src/M5PM1.cpp @@ -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 }, };