diff --git a/system_general/rc_data.h b/system_general/rc_data.h index ddc79f1..c6e2372 100644 --- a/system_general/rc_data.h +++ b/system_general/rc_data.h @@ -5,12 +5,14 @@ typedef struct { byte type = 0; - byte command; - uint16_t btns; - int16_t analog[14]; + byte command = 0; + uint16_t btns = 0; + int16_t analog[14] = { + 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., + }; } nrfRC; -nrfRC RCdata; +nrfRC RCdata = nrfRC(); void RCdataradioTask() { memmove(&RCdata, &jRCbuff, sizeof(RCdata));