Skip to content

Commit

Permalink
[#1] Updated struct name
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-ns committed Jun 17, 2018
1 parent 42bc091 commit 62e1fe6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Communication/sloth_protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,21 @@ typedef struct sloth_config
uint32_t kd;
}sloth_config_t

// todo: define a better name for this.
typedef struct sloth_var_set
{
sloth_ctrl_var_t var;
uint32_t value;
}sloth_var_set_t

/* Defining a type for the structure of a command. */
typedef struct sloth_cmd
{
sloth_opcode_t cmd;
// sloth_op_status_t status; // for now, maybe status isn't a big deal
union
{
sloth_ctrl_var_t variable;
sloth_var_set_t variable;
sloth_config_t config;
}
// uint16_t crc; // for now we dont need CRC
Expand Down

0 comments on commit 62e1fe6

Please sign in to comment.