debug text changes

This commit is contained in:
proddy
2024-07-26 13:25:44 +02:00
parent 7a3300b8f8
commit 65a5eeee69
2 changed files with 3 additions and 3 deletions

View File

@@ -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 {

View File

@@ -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