From 8ca32f88e8e83b442348b023759545355949c5d6 Mon Sep 17 00:00:00 2001 From: Pavel Demin Date: Sat, 20 Oct 2018 19:29:23 +0000 Subject: [PATCH] remove seconds from timestamps in sdr_transceiver_ft8 --- projects/sdr_transceiver_ft8/app/decode-ft8.sh | 2 +- projects/sdr_transceiver_ft8/app/upload-ft8.sh | 2 +- projects/sdr_transceiver_ft8/app/write-c2-files.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/sdr_transceiver_ft8/app/decode-ft8.sh b/projects/sdr_transceiver_ft8/app/decode-ft8.sh index 273eb3c9c..3ad1a58c1 100755 --- a/projects/sdr_transceiver_ft8/app/decode-ft8.sh +++ b/projects/sdr_transceiver_ft8/app/decode-ft8.sh @@ -25,7 +25,7 @@ $SLEEP sleep 1 date -TIMESTAMP=`date --utc +'%y%m%d_%H%M%S'` +TIMESTAMP=`date --utc +'%y%m%d_%H%M'` echo "Recording ..." diff --git a/projects/sdr_transceiver_ft8/app/upload-ft8.sh b/projects/sdr_transceiver_ft8/app/upload-ft8.sh index 3793e005f..4fe186c7d 100755 --- a/projects/sdr_transceiver_ft8/app/upload-ft8.sh +++ b/projects/sdr_transceiver_ft8/app/upload-ft8.sh @@ -18,7 +18,7 @@ echo "Sleeping ..." $SLEEP 300 date -TIMESTAMP=`date --utc +'%y%m%d_%H%M%S'` +TIMESTAMP=`date --utc +'%y%m%d_%H%M'` echo "Processing ..." diff --git a/projects/sdr_transceiver_ft8/app/write-c2-files.c b/projects/sdr_transceiver_ft8/app/write-c2-files.c index 50718c384..ea680084a 100644 --- a/projects/sdr_transceiver_ft8/app/write-c2-files.c +++ b/projects/sdr_transceiver_ft8/app/write-c2-files.c @@ -22,7 +22,7 @@ int main(int argc, char *argv[]) uint64_t *buffer; config_t config; config_setting_t *setting, *element; - char date[14]; + char date[12]; char name[32]; double dialfreq; double corr; @@ -155,7 +155,7 @@ int main(int argc, char *argv[]) for(i = 0; i < length; ++i) { dialfreq = freq[i] * 1.0e6; - strftime(date, 14, "%y%m%d_%H%M%S", gmt); + strftime(date, 12, "%y%m%d_%H%M", gmt); sprintf(name, "ft8_%d_%d_%s.c2", i, (uint32_t)dialfreq, date); if((fp = fopen(name, "wb")) == NULL) {