Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/param/param_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ static void param_serve_pull_request(csp_packet_t * request, int all, int versio
struct param_serve_context ctx;
ctx.request = request;
ctx.q_response.version = version;
/* If packet->data[1] == 1 ack with pull response */
int ack_with_pull = request->data[1] == 1 ? 1 : 0;
/* ack_with_pull == ack with pull response */
const int ack_with_pull = (request->data[1] & 0b01) != 0;
const int include_remotes = (request->data[1] & 0b10) != 0;

if (__allocate(&ctx) < 0) {
csp_buffer_free(request);
Expand Down Expand Up @@ -147,6 +148,9 @@ static void param_serve_pull_request(csp_packet_t * request, int all, int versio
if (param->mask & PM_HIDDEN) {
continue;
}
if (!include_remotes && *param->node != 0) {
continue;
}
uint32_t include_mask = be32toh(ctx.request->data32[1]);
uint32_t exclude_mask = 0x00000000;
if (version >= 2) {
Expand Down
Loading