Skip to content

Commit

Permalink
Use overflowed
Browse files Browse the repository at this point in the history
  • Loading branch information
sidoh committed Sep 27, 2023
1 parent 67a835e commit 83c35ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MQTT/BulbStateUpdater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ inline void BulbStateUpdater::flushGroup(BulbId bulbId, GroupState& state) {
JsonObject message = json.to<JsonObject>();
state.applyState(message, bulbId, settings.groupStateFields);

if (json.memoryUsage() >= json.capacity()) {
if (json.overflowed()) {
Serial.println(F("ERROR: State is too large for MQTT buffer, continuing anyway. Consider increasing MILIGHT_MQTT_JSON_BUFFER_SIZE."));
}

Expand Down

0 comments on commit 83c35ca

Please sign in to comment.