From a6e53d3399c46c6428ed5a16ad24eb8d59c36935 Mon Sep 17 00:00:00 2001 From: SP9SKP Date: Thu, 16 Dec 2021 18:26:17 +0100 Subject: [PATCH] poprawka numeru ramek --- src/sondemod.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sondemod.c b/src/sondemod.c index 705586b..1be4e6f 100644 --- a/src/sondemod.c +++ b/src/sondemod.c @@ -536,7 +536,7 @@ int read_csv() dBs[cnt].lon=atof(txt); break; case 3: - dBs[cnt].alt=atol(txt); + dBs[cnt].alt=strtoul(txt, NULL, 10); break; case 4: dBs[cnt].speed=atof(txt); @@ -551,7 +551,7 @@ int read_csv() dBs[cnt].frq=atof(txt); break; case 8: - dBs[cnt].time=atol(txt); + dBs[cnt].time=strtoul(txt, NULL, 10);; break; } i++; @@ -3369,7 +3369,7 @@ static void decodem10(char rxb[], uint32_t rxb_len, uint32_t ip, uint32_t frompo tmp = strtok(NULL, ","); //time if(isNDig(tmp)) return; - time0=atol(tmp); + time0=strtoul(tmp, NULL, 10);; frameno=time0; tmp = strtok(NULL, ","); //lat @@ -3545,7 +3545,7 @@ static void decodem20(const char rxb[], uint32_t rxb_len, uint32_t ip, uint32_t strcpy(nam,tmp); tmp = strtok(NULL, ","); //time if(isNDig(tmp)) return; - time0=atol(tmp); + time0=strtoul(tmp, NULL, 10); frameno=time0; tmp = strtok(NULL, ","); //lat if(isNDig(tmp)) return;