]> git.droids-corp.org - fpv.git/commitdiff
gps_venus: add missing attribute in m_output message struct
authorOlivier Matz <zer0@droids-corp.org>
Tue, 9 Sep 2014 16:57:58 +0000 (18:57 +0200)
committerOlivier Matz <zer0@droids-corp.org>
Tue, 9 Sep 2014 16:57:58 +0000 (18:57 +0200)
imuboard/gps_venus.c

index 157091267703d9835eda23b64363206afca6db71..747085888db63b3af29d6bd252cfb3d327d1ad04 100644 (file)
@@ -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));