Porównaj commity

...

4 Commity

Autor SHA1 Wiadomość Data
Guenael, VA2GKA 17502db2f3
Merge pull request #136 from krasoffski/fix_zero_padding_for_pwr
Fix whitespace padding for PWR
2024-03-01 14:35:51 -05:00
Yury Krasouski 876f6ff57c Add zero padding for pwr 2024-02-29 16:22:43 +01:00
Guenael, VA2GKA a6416c5ed6
Merge pull request #135 from krasoffski/fix_print_formatting
Aligned print spots without seconds
2024-02-28 20:29:47 -05:00
Yury Krasouski 901e3f931d Aligned print spots without seconds 2024-02-26 11:50:33 +01:00
2 zmienionych plików z 3 dodań i 4 usunięć

Wyświetl plik

@ -448,13 +448,12 @@ void printSpots(uint32_t n_results) {
}
for (uint32_t i = 0; i < n_results; i++) {
printf("Spot : %04d-%02d-%02d %02d:%02d:%02d %6.2f %6.2f %10.6f %2d %7s %6s %2s\n",
printf("Spot : %04d-%02d-%02d %02d:%02dz %6.2f %6.2f %10.6f %2d %7s %6s %2s\n",
rx_state.gtm->tm_year + 1900,
rx_state.gtm->tm_mon + 1,
rx_state.gtm->tm_mday,
rx_state.gtm->tm_hour,
rx_state.gtm->tm_min,
rx_state.gtm->tm_sec,
dec_results[i].snr,
dec_results[i].dt,
dec_results[i].freq,
@ -1139,7 +1138,7 @@ int main(int argc, char **argv) {
uint32_t usec = sec * 1000000 + lTime.tv_usec;
uint32_t uwait = 120000000 - usec;
printf("Wait for time sync (start in %d sec)\n\n", uwait / 1000000);
printf(" Date Time(z) SNR DT Freq Dr Call Loc Pwr\n");
printf(" Date Time SNR DT Freq Dr Call Loc Pwr\n");
/* Prepare a low priority param for the decoder thread */
struct sched_param param;

Wyświetl plik

@ -263,7 +263,7 @@ int unpk_(signed char *message, char *hashtab, char *loctab, char *call_loc_pow,
if (nu == 0 || nu == 3 || nu == 7) {
ndbm = ntype;
memset(call_loc_pow, 0, sizeof(char) * 23);
sprintf(cdbm, "%2d", ndbm);
sprintf(cdbm, "%02d", ndbm);
strncat(call_loc_pow, callsign, strlen(callsign));
strncat(call_loc_pow, " ", 1);
strncat(call_loc_pow, grid, 4);