default values
This commit is contained in:
parent
e24422b182
commit
ce6e046d4b
1 changed files with 6 additions and 4 deletions
|
@ -5,12 +5,14 @@
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
byte type = 0;
|
byte type = 0;
|
||||||
byte command;
|
byte command = 0;
|
||||||
uint16_t btns;
|
uint16_t btns = 0;
|
||||||
int16_t analog[14];
|
int16_t analog[14] = {
|
||||||
|
0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
|
||||||
|
};
|
||||||
} nrfRC;
|
} nrfRC;
|
||||||
|
|
||||||
nrfRC RCdata;
|
nrfRC RCdata = nrfRC();
|
||||||
|
|
||||||
void RCdataradioTask() {
|
void RCdataradioTask() {
|
||||||
memmove(&RCdata, &jRCbuff, sizeof(RCdata));
|
memmove(&RCdata, &jRCbuff, sizeof(RCdata));
|
||||||
|
|
Loading…
Reference in a new issue