From ce6e046d4b17a57aea85fbc52661e162b5186853 Mon Sep 17 00:00:00 2001 From: jusax23 Date: Sun, 24 Sep 2023 16:42:23 +0200 Subject: [PATCH] default values --- system_general/rc_data.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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));