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