Skip to content

Commit

Permalink
Fix plot juggler build
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsmith1999 committed Oct 4, 2022
1 parent 8347c55 commit cba2802
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions messaging/msgq.cc
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,12 @@ int msgq_msg_ready(msgq_queue_t * q){
goto start;
}

uint32_t read_cycles, read_pointer;
uint32_t __attribute__((unused)) read_cycles;
uint32_t read_pointer;
UNPACK64(read_cycles, read_pointer, *q->read_pointers[id]);

uint32_t write_cycles, write_pointer;
uint32_t __attribute__((unused)) write_cycles;
uint32_t write_pointer;
UNPACK64(write_cycles, write_pointer, *q->write_pointer);

// Check if new message is available
Expand All @@ -348,7 +350,8 @@ int msgq_msg_recv(msgq_msg_t * msg, msgq_queue_t * q){
uint32_t read_cycles, read_pointer;
UNPACK64(read_cycles, read_pointer, *q->read_pointers[id]);

uint32_t write_cycles, write_pointer;
uint32_t __attribute__((unused)) write_cycles;
uint32_t write_pointer;
UNPACK64(write_cycles, write_pointer, *q->write_pointer);

char * p = q->data + read_pointer;
Expand Down

0 comments on commit cba2802

Please sign in to comment.