Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions components/i2c/include/i2c_format_helpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ template <> struct fmt::formatter<i2c_port_t> {
switch (p) {
case I2C_NUM_0:
return fmt::format_to(ctx.out(), "I2C_NUM_0");
case I2C_NUM_1:
return fmt::format_to(ctx.out(), "I2C_NUM_1");
#ifdef I2C_NUM_1
case I2C_NUM_1:
return fmt::format_to(ctx.out(), "I2C_NUM_1");
#endif
default:
return fmt::format_to(ctx.out(), "Unknown");
}
Expand Down