-
Notifications
You must be signed in to change notification settings - Fork 20
Update proto/support virtual node flag #147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
lib/api/wpc_proto.h
Outdated
| * wp_UploadScratchpadResp_size | ||
| */ | ||
| #define WPC_PROTO_MAX_RESPONSE_SIZE (415 + WPC_PROTO_GENERIC_MESSAGE_OVERHEAD) | ||
| #define WPC_PROTO_MAX_RESPONSE_SIZE (450 + WPC_PROTO_GENERIC_MESSAGE_OVERHEAD) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should find a way to size it.
I added some bytes to take into account flags support.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be good to have a comment telling where this number comes from
| char * gateway_version, | ||
| char * sink_id) | ||
| { | ||
| _Static_assert(WPC_PROTO_MAX_RESPONSE_SIZE >= (wp_GetConfigsResp_size + WPC_PROTO_GENERIC_MESSAGE_OVERHEAD), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is removed on purpose as now wp_GetConfigsResp_size is not available in generated code
It will avoid dynamic size
3a4295a to
eb26798
Compare
|
Initially I forget the options we use to generate "static" c code rather than runtime dynamic code. |
No description provided.