Skip to content

Commit

Permalink
Merge pull request #762 from pavel-demin/develop
Browse files Browse the repository at this point in the history
remove seconds from timestamps in sdr_transceiver_ft8
  • Loading branch information
pavel-demin authored Oct 20, 2018
2 parents cca4a00 + 8ca32f8 commit 7f1279c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion projects/sdr_transceiver_ft8/app/decode-ft8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..."

Expand Down
2 changes: 1 addition & 1 deletion projects/sdr_transceiver_ft8/app/upload-ft8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..."

Expand Down
4 changes: 2 additions & 2 deletions projects/sdr_transceiver_ft8/app/write-c2-files.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit 7f1279c

Please sign in to comment.