Changeset 30752 for titan/titan/global.h
- Timestamp:
- 10/30/14 10:50:52 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/global.h
r30748 r30752 6170 6170 int converte2settings(int flag) 6171 6171 { 6172 char* path = NULL, * tmpstr3 = NULL, *buf = NULL, *tmpstr = NULL, *tmpstr1 = NULL, *tmpstr2 = NULL, *line = NULL, *name = NULL, *orbitalpos = NULL, *fetype = NULL, *flags = NULL, *outfile = NULL, *start = NULL, *end = NULL, *filename = NULL, *transponderfile = NULL, *satfile = NULL;6172 char* path = NULL, *buf = NULL, *tmpstr = NULL, *tmpstr1 = NULL, *tmpstr2 = NULL, *line = NULL, *name = NULL, *orbitalpos = NULL, *fetype = NULL, *flags = NULL, *outfile = NULL, *start = NULL, *end = NULL, *filename = NULL, *transponderfile = NULL, *satfile = NULL; 6173 6173 int incount = 0; 6174 6174 … … 6256 6256 6257 6257 // writesys("/tmp/convert.log", buf, 1); 6258 tmpstr3 = ostrcat("-1", NULL, 0, 0);6259 6258 6260 6259 while(ostrstr(buf, start) != NULL) … … 6310 6309 line = ostrcat(line, getxmlentry(ret1[i].part, "frequency="), 1, 0); // frequency 6311 6310 else 6312 line = ostrcat(line, tmpstr3, 1, 0);6311 line = ostrcat(line, "-1", 1, 0); 6313 6312 line = ostrcat(line, "#", 1, 0); 6314 6313 … … 6316 6315 line = ostrcat(line, getxmlentry(ret1[i].part, "polarization="), 1, 0); // polarization 6317 6316 else 6318 line = ostrcat(line, tmpstr3, 1, 0); // polarization6317 line = ostrcat(line, "-1", 1, 0); // polarization 6319 6318 6320 6319 line = ostrcat(line, "#", 1, 0); … … 6322 6321 line = ostrcat(line, orbitalpos, 1, 0); // orbitalpos 6323 6322 else 6324 line = ostrcat(line, tmpstr3, 1, 0); // orbitalpos6323 line = ostrcat(line, "-1", 1, 0); // orbitalpos 6325 6324 line = ostrcat(line, "#", 1, 0); 6326 6325 … … 6328 6327 line = ostrcat(line, getxmlentry(ret1[i].part, "symbol_rate="), 1, 0); // symbolrate 6329 6328 else 6330 line = ostrcat(line, tmpstr3, 1, 0);6329 line = ostrcat(line, "-1", 1, 0); 6331 6330 line = ostrcat(line, "#", 1, 0); 6332 6331 … … 6334 6333 line = ostrcat(line, getxmlentry(ret1[i].part, "modulation="), 1, 0); // modulation 6335 6334 else 6336 line = ostrcat(line, tmpstr3, 1, 0); 6335 { 6336 if(flag == 2) 6337 line = ostrcat(line, "3", 1, 0); 6338 else 6339 line = ostrcat(line, "0", 1, 0); 6340 } 6337 6341 line = ostrcat(line, "#", 1, 0); 6338 6342 … … 6340 6344 line = ostrcat(line, getxmlentry(ret1[i].part, "fec_inner="), 1, 0); // fec 6341 6345 else 6342 line = ostrcat(line, tmpstr3, 1, 0); 6346 { 6347 if(flag == 2) 6348 line = ostrcat(line, "5", 1, 0); 6349 else 6350 line = ostrcat(line, "0", 1, 0); 6351 } 6343 6352 line = ostrcat(line, "#", 1, 0); 6344 6353 … … 6352 6361 line = ostrcat(line, "0", 1, 0); // rolloff 6353 6362 else 6354 line = ostrcat(line, tmpstr3, 1, 0); // rolloff6363 line = ostrcat(line, "3", 1, 0); // rolloff 6355 6364 line = ostrcat(line, "#", 1, 0); 6356 6365 6357 if(checkbox("UFS910") == 1) 6358 line = ostrcat(line, "2", 1, 0); // inversion 6359 else 6360 line = ostrcat(line, tmpstr3, 1, 0); // inversion 6366 line = ostrcat(line, "2", 1, 0); // inversion 6361 6367 line = ostrcat(line, "#", 1, 0); 6362 6368 … … 6364 6370 line = ostrcat(line, getxmlentry(ret1[i].part, "system="), 1, 0); // system 6365 6371 else 6366 line = ostrcat(line, tmpstr3, 1, 0); // system6372 line = ostrcat(line, "0", 1, 0); // system 6367 6373 line = ostrcat(line, "\n", 1, 0); 6368 6374 } … … 6396 6402 free(transponderfile), transponderfile = NULL; 6397 6403 6398 free(tmpstr3), tmpstr3 = NULL;6399 6404 free(buf), buf = NULL; 6400 6405 free(start), start = NULL;
Note: See TracChangeset
for help on using the changeset viewer.