File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11#ifndef CPPESPHOMEAPI_DEVICE_INFO_HPP
22#define CPPESPHOMEAPI_DEVICE_INFO_HPP
3- #include < string>
43#include < cstdint>
4+ #include < string>
55
66namespace cppesphomeapi
77{
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments