mirror of
https://github.com/esphome/esphome.git
synced 2026-10-01 08:50:22 +00:00
[benchmark] Fix plaintext frame benchmark build: enable api codegen
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
#include "esphome/core/defines.h"
|
||||
#ifdef USE_API_PLAINTEXT
|
||||
|
||||
#include <benchmark/benchmark.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/socket.h>
|
||||
@@ -122,3 +125,5 @@ static void PlaintextFrame_WriteBatch5(benchmark::State &state) {
|
||||
BENCHMARK(PlaintextFrame_WriteBatch5);
|
||||
|
||||
} // namespace esphome::api::benchmarks
|
||||
|
||||
#endif // USE_API_PLAINTEXT
|
||||
|
||||
Reference in New Issue
Block a user