kopia lustrzana https://github.com/sp9skp/spdxl
poprawka do zamykania pliku toold
rodzic
16c65aa749
commit
288910b840
2
VER.txt
2
VER.txt
|
@ -1 +1 @@
|
||||||
11012019
|
29012019
|
|
@ -2825,6 +2825,9 @@ BOOL RINEX_DecodeGPSNavigationFile(
|
||||||
if( result == FALSE )
|
if( result == FALSE )
|
||||||
{
|
{
|
||||||
GNSS_ERROR_MSG( "RINEX_GetHeader returned FALSE." );
|
GNSS_ERROR_MSG( "RINEX_GetHeader returned FALSE." );
|
||||||
|
FILE *ftoold=fopen("/tmp/toold", "ab+");
|
||||||
|
if(ftoold) fclose(ftoold);
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3928,6 +3931,9 @@ BOOL RINEX_GetKlobucharIonoParametersFromNavFile(
|
||||||
if( result == FALSE )
|
if( result == FALSE )
|
||||||
{
|
{
|
||||||
GNSS_ERROR_MSG( "RINEX_GetHeader returned FALSE." );
|
GNSS_ERROR_MSG( "RINEX_GetHeader returned FALSE." );
|
||||||
|
FILE *ftoold=fopen("/tmp/toold", "ab+");
|
||||||
|
if(ftoold) fclose(ftoold);
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1894,7 +1894,8 @@ static void decodeframe(uint8_t m, uint32_t ip, uint32_t fromport)
|
||||||
}
|
}
|
||||||
if (almage+maxalmage>gpstime) anonym0->posok = 1;
|
if (almage+maxalmage>gpstime) anonym0->posok = 1;
|
||||||
else if (almanachage>0UL) {
|
else if (almanachage>0UL) {
|
||||||
fopen("/tmp/toold", "ab+");
|
FILE *ftoold=fopen("/tmp/toold", "ab+");
|
||||||
|
if(ftoold) fclose(ftoold);
|
||||||
osic_WrINT32(almanachage/60UL, 10UL);
|
osic_WrINT32(almanachage/60UL, 10UL);
|
||||||
osi_WrStrLn(" Min (almanach too old)", 24ul);
|
osi_WrStrLn(" Min (almanach too old)", 24ul);
|
||||||
if (almread+4UL<=systime) {
|
if (almread+4UL<=systime) {
|
||||||
|
@ -1950,7 +1951,8 @@ static void decodeframe(uint8_t m, uint32_t ip, uint32_t fromport)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (contextr9.posok && contextr9.lat!=0.0 && contextr9.long0!=0.0 && contextr9.heig==0.0 && contextr9.dir==0.0) {
|
if (contextr9.posok && contextr9.lat!=0.0 && contextr9.long0!=0.0 && contextr9.heig==0.0 && contextr9.dir==0.0) {
|
||||||
fopen("/tmp/toold", "ab+");
|
FILE *ftoold=fopen("/tmp/toold", "ab+");
|
||||||
|
if(ftoold) fclose(ftoold);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (contextr9.posok && contextr9.lat!=0.0 && contextr9.long0!=0.0) {
|
if (contextr9.posok && contextr9.lat!=0.0 && contextr9.long0!=0.0) {
|
||||||
|
|
Ładowanie…
Reference in New Issue