Skip to content

Commit b3fc1be

Browse files
committed
format
1 parent c7d78d3 commit b3fc1be

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

cppesphomeapi/include/cppesphomeapi/device_info.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef CPPESPHOMEAPI_DEVICE_INFO_HPP
22
#define CPPESPHOMEAPI_DEVICE_INFO_HPP
3-
#include <string>
43
#include <cstdint>
4+
#include <string>
55

66
namespace cppesphomeapi
77
{

cppesphomeapi/src/plain_text_protocol.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ Result<std::vector<std::uint8_t>> plain_text_serialize(const ::google::protobuf:
8181
output_stream.WriteVarint32(message.ByteSizeLong());
8282
output_stream.WriteVarint32(msg_options.GetExtension(proto::id));
8383

84-
if(output_stream.ByteCount() != (kMaxHeaderLen - 1)) {
84+
if (output_stream.ByteCount() != (kMaxHeaderLen - 1))
85+
{
8586
buffer.resize(1 + message.ByteSizeLong() + output_stream.ByteCount());
8687
}
8788

example/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ awaitable<void> client()
4040
std::println("couldn't get list {}", list.error().message);
4141
}
4242

43-
co_await api_client.async_light_command({.key = 1111582032, .effect ="Pulsate"});
43+
co_await api_client.async_light_command({.key = 1111582032, .effect = "Pulsate"});
4444

4545
co_await api_client.async_disconnect();
4646
}

0 commit comments

Comments
 (0)