diff --git a/src/mqtt/hasp_mqtt_paho_async.cpp b/src/mqtt/hasp_mqtt_paho_async.cpp index 642c71e5..166ff099 100644 --- a/src/mqtt/hasp_mqtt_paho_async.cpp +++ b/src/mqtt/hasp_mqtt_paho_async.cpp @@ -126,7 +126,7 @@ void connlost(void* context, char* cause) static void mqtt_message_cb(char* topic, char* payload, unsigned int length) { // Handle incoming commands from MQTT if(length + 1 >= MQTT_MAX_PACKET_SIZE) { - LOG_ERROR(TAG_MQTT_RCV, F("Payload too long (%d bytes)"), length); + LOG_ERROR(TAG_MQTT_RCV, F(D_MQTT_PAYLOAD_TOO_LONG), length); return; } else { payload[length] = '\0'; diff --git a/src/mqtt/hasp_mqtt_paho_single.cpp b/src/mqtt/hasp_mqtt_paho_single.cpp index a291e71d..3c1f1841 100644 --- a/src/mqtt/hasp_mqtt_paho_single.cpp +++ b/src/mqtt/hasp_mqtt_paho_single.cpp @@ -123,7 +123,7 @@ void connlost(void* context, char* cause) static void mqtt_message_cb(char* topic, char* payload, unsigned int length) { // Handle incoming commands from MQTT if(length + 1 >= MQTT_MAX_PACKET_SIZE) { - LOG_ERROR(TAG_MQTT_RCV, F("Payload too long (%d bytes)"), length); + LOG_ERROR(TAG_MQTT_RCV, F(D_MQTT_PAYLOAD_TOO_LONG), length); return; } else { payload[length] = '\0';