remove batch

This commit is contained in:
J. Nick Koston
2025-06-05 23:59:22 +01:00
parent 7cc2d059bc
commit e4df8a70ef
2 changed files with 2 additions and 8 deletions

View File

@@ -1516,13 +1516,7 @@ void APIConnection::process_batch_() {
}
// Encode the message directly from the stored ProtoMessage
bool success = item.message->encode(batch_buffer);
if (!success) {
ESP_LOGW(TAG, "Failed to encode message type %u", item.message->get_message_type());
// Since we pre-calculated sizes, encoding should not fail
// If it does, we have a serious issue
}
item.message->encode(batch_buffer);
}
// Send all collected packets