Skip to content

Commit

Permalink
AP_Volz_Protocol: Moved member variable definition within proper #def…
Browse files Browse the repository at this point in the history
…ine block to prevent unused variable warning
  • Loading branch information
katzfey authored and peterbarker committed Dec 18, 2024
1 parent 42e2e23 commit 5c9003d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/AP_Volz_Protocol/AP_Volz_Protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ class AP_Volz_Protocol {

// Loop in thread to output to uart
void loop();
uint8_t sent_count;

void init(void);

Expand Down Expand Up @@ -120,6 +119,8 @@ class AP_Volz_Protocol {
void read_telem();
void process_response(const CMD &cmd);

uint8_t sent_count;

struct {
CMD_ID types[3] {
CMD_ID::READ_CURRENT,
Expand Down

0 comments on commit 5c9003d

Please sign in to comment.