Skip to content

Commit

Permalink
SerialCommHub: avoid warnings
Browse files Browse the repository at this point in the history
Fix incorrect intent of `<<` stream vs. fmt::format.

Signed-off-by: Moritz Barsnick <[email protected]>
  • Loading branch information
barsnick committed Jul 2, 2024
1 parent 3c4364e commit f8a398e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void serial_communication_hubImpl::init() {
if (!modbus.open_device(config.serial_port, config.baudrate, config.ignore_echo, rxtx_gpio_settings,
static_cast<tiny_modbus::Parity>(config.parity), config.rtscts,
milliseconds(config.initial_timeout_ms), milliseconds(config.within_message_timeout_ms))) {
EVLOG_error << "Cannot open serial port {}, ModBus will not work.", config.serial_port;
EVLOG_error << fmt::format("Cannot open serial port {}, ModBus will not work.", config.serial_port);
}
}

Expand Down

0 comments on commit f8a398e

Please sign in to comment.