Handle too many command data

Handle too many command data
This commit is contained in:
Theo Arends 2019-02-23 19:19:31 +01:00
parent 93d07c1acc
commit 68c60c321e

View File

@ -431,6 +431,8 @@ uint16_t GetPulseTimer(uint8_t index)
void MqttDataHandler(char* topic, uint8_t* data, unsigned int data_len)
{
if (data_len > MQTT_MAX_PACKET_SIZE) { return; } // Do not allow more data than would be feasable within stack space
char *str;
if (!strcmp(Settings.mqtt_prefix[0],Settings.mqtt_prefix[1])) {