mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
debug text changes
This commit is contained in:
@@ -438,7 +438,7 @@ ModbusMessage Modbus::handleWrite(const ModbusMessage & request) {
|
||||
if (output.size()) {
|
||||
snprintf(error,
|
||||
sizeof(error),
|
||||
"Modbus write command failed with error: %s (%s)",
|
||||
"Modbus write command failed with error %s (%s)",
|
||||
(const char *)output["message"],
|
||||
Command::return_code_string(return_code));
|
||||
} else {
|
||||
|
||||
@@ -228,9 +228,9 @@ void Mqtt::on_message(const char * topic, const uint8_t * payload, size_t len) {
|
||||
|
||||
#if defined(EMSESP_DEBUG)
|
||||
if (len) {
|
||||
LOG_DEBUG("Received topic `%s` => payload `%s` (length %d)", topic, message, len);
|
||||
LOG_DEBUG("Received topic %s => payload '%s' (length %d)", topic, message, len);
|
||||
} else {
|
||||
LOG_DEBUG("Received topic `%s`", topic);
|
||||
LOG_DEBUG("Received topic %s", topic);
|
||||
}
|
||||
#endif
|
||||
// remove HA topics if we don't use discovery
|
||||
|
||||
Reference in New Issue
Block a user