We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 242d690 commit 6775574Copy full SHA for 6775574
components/i2c/include/i2c_format_helpers.hpp
@@ -18,8 +18,10 @@ template <> struct fmt::formatter<i2c_port_t> {
18
switch (p) {
19
case I2C_NUM_0:
20
return fmt::format_to(ctx.out(), "I2C_NUM_0");
21
- case I2C_NUM_1:
22
- return fmt::format_to(ctx.out(), "I2C_NUM_1");
+ #ifdef I2C_NUM_1
+ case I2C_NUM_1:
23
+ return fmt::format_to(ctx.out(), "I2C_NUM_1");
24
+ #endif
25
default:
26
return fmt::format_to(ctx.out(), "Unknown");
27
}
0 commit comments