This commit is contained in:
J. Nick Koston
2025-06-06 03:07:07 +01:00
parent 71125a1137
commit d87eeea439
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ class APIServerConnectionBase : public ProtoService {
#ifdef HAS_PROTO_MESSAGE_DUMP
ESP_LOGVV(TAG, "send_message %s: %s", T::message_name(), msg.dump().c_str());
#endif
return this->send_message_(msg, msg.get_message_type());
return this->send_message_(msg, T::message_type);
}
virtual void on_hello_request(const HelloRequest &value){};

View File

@@ -1096,7 +1096,7 @@ def main() -> None:
hpp += "#ifdef HAS_PROTO_MESSAGE_DUMP\n"
hpp += ' ESP_LOGVV(TAG, "send_message %s: %s", T::message_name(), msg.dump().c_str());\n'
hpp += "#endif\n"
hpp += " return this->send_message_(msg, msg.get_message_type());\n"
hpp += " return this->send_message_(msg, T::message_type);\n"
hpp += " }\n\n"
for mt in file.message_type: