Skip to content

Commit 250501f

Browse files
removing params from struct in order to make references shorter
1 parent 9d4e31e commit 250501f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/message/Commands.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,28 +73,28 @@ struct DeviceBeginCmd {
7373
Command c;
7474
struct {
7575
char lib_version[MAX_LIB_VERSION_SIZE];
76-
} params;
76+
};
7777
};
7878

7979
struct ThingBeginCmd {
8080
Command c;
8181
struct {
8282
char thing_id[THING_ID_SIZE];
83-
} params;
83+
};
8484
};
8585

8686
struct ThingUpdateCmd {
8787
Command c;
8888
struct {
8989
char thing_id[THING_ID_SIZE];
90-
} params;
90+
};
9191
};
9292

9393
struct ThingDetachCmd {
9494
Command c;
9595
struct {
9696
char thing_id[THING_ID_SIZE];
97-
} params;
97+
};
9898
};
9999

100100
struct LastValuesBeginCmd {
@@ -106,14 +106,14 @@ struct LastValuesUpdateCmd {
106106
struct {
107107
uint8_t * last_values;
108108
size_t length;
109-
} params;
109+
};
110110
};
111111

112112
struct OtaBeginUp {
113113
Command c;
114114
struct {
115115
uint8_t sha [SHA256_SIZE];
116-
} params;
116+
};
117117
};
118118

119119
struct OtaProgressCmdUp {
@@ -123,7 +123,7 @@ struct OtaProgressCmdUp {
123123
uint8_t state;
124124
int32_t state_data;
125125
uint64_t time;
126-
} params;
126+
};
127127
};
128128

129129
struct OtaUpdateCmdDown {
@@ -133,7 +133,7 @@ struct OtaUpdateCmdDown {
133133
char url[URL_SIZE];
134134
uint8_t initialSha256[SHA256_SIZE];
135135
uint8_t finalSha256[SHA256_SIZE];
136-
} params;
136+
};
137137
};
138138

139139
struct TimezoneCommandUp {
@@ -145,7 +145,7 @@ struct TimezoneCommandDown {
145145
struct {
146146
int32_t offset;
147147
uint32_t until;
148-
} params;
148+
};
149149
};
150150

151151
union CommandDown {

0 commit comments

Comments
 (0)