Subversion Repositories Projects

Rev

Rev 2039 | Rev 2075 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2039 Rev 2043
Line 133... Line 133...
133
 
133
 
134
//#define NOFCOMMUNICATION
134
//#define NOFCOMMUNICATION
135
#ifndef NOFCOMMUNICATION
135
#ifndef NOFCOMMUNICATION
136
    usart1_request_blocking('Q', PSTR(REQUEST_CURRENT_SETTING));
136
    usart1_request_blocking('Q', PSTR(REQUEST_CURRENT_SETTING));
-
 
137
        memcpy((char*)(&setting), (char*)pRxData, sizeof(paramset_serial));
-
 
138
 
-
 
139
        if (setting.param.Revision != EEPARAM_REVISION) {
-
 
140
                write_ascii_string_pgm(3, 11, PSTR("WRONG SETTINGS REVISION"));
-
 
141
                write_ascii_string_pgm(3, 12, PSTR("OSD:     FC:"));
-
 
142
        write_ndigit_number_u(8, 12, EEPARAM_REVISION, 3, 1);
-
 
143
        write_ndigit_number_u(15, 12, setting.param.Revision, 3, 1);
-
 
144
                while (1) {};
-
 
145
        }
-
 
146
 
-
 
147
#if FCONLY
-
 
148
#else
-
 
149
        if (naviData.Version != NAVIDATA_VERSION) {
-
 
150
                write_ascii_string_pgm(3, 11, PSTR("WRONG NAVIDATA VERSION"));
-
 
151
                write_ascii_string_pgm(3, 12, PSTR("OSD:     FC:"));
-
 
152
        write_ndigit_number_u(8, 12, NAVIDATA_VERSION, 3, 1);
-
 
153
        write_ndigit_number_u(15, 12, naviData.Version, 3, 1);
-
 
154
                while (1) {};
-
 
155
        }
-
 
156
#endif
137
        memcpy((char*)(&setting), (char*)pRxData, sizeof(paramset_serial));
157
 
138
    //setting = *((paramset_serial*)pRxData);
158
    //setting = *((paramset_serial*)pRxData);
139
#else 
159
#else 
140
        // manual stuff?        
160
        // manual stuff?        
141
        memcpy((char*)setting.param.Name, "NO FC COMMUN", 12);
161
        memcpy((char*)setting.param.Name, "NO FC COMMUN", 12);