default values

This commit is contained in:
jusax23 2023-09-24 16:42:23 +02:00
parent e24422b182
commit ce6e046d4b
Signed by: jusax23
GPG key ID: 499E2AA870C1CD41

View file

@ -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));