From: Olivier Matz Date: Tue, 9 Sep 2014 16:57:58 +0000 (+0200) Subject: gps_venus: add missing attribute in m_output message struct X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a21bb4c2de773acd684d7c4981e4a32da4631f2c;hp=9b19fd37c2284546d8e6bbe301cdeec0225919fe;p=fpv.git gps_venus: add missing attribute in m_output message struct --- diff --git a/imuboard/gps_venus.c b/imuboard/gps_venus.c index 1570912..7470858 100644 --- a/imuboard/gps_venus.c +++ b/imuboard/gps_venus.c @@ -123,6 +123,10 @@ typedef struct { 01 = nmea output 02 = binary output */ + uint8_t attributes; /* + 0 - update ram + 1 - update ram & flash + */ } m_output_t; @@ -225,6 +229,7 @@ void venus634_msg_type(void) memset(&output,0,sizeof(m_output_t)); output.msg_type = 0x02; /* binary msg */ + output.attributes = 0; /* ram, init may freeze when update in flash */ venus634_send(M_OUTPUT,&output,sizeof(m_output_t));