Skip to content
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.

Commit

Permalink
iso
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jan 1, 2018
1 parent 56bf5ae commit c9e7a42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SCPIlogger.py
Expand Up @@ -49,7 +49,7 @@ def nmeapoll(sport,logstem,period,verbose):
LastDay = Today

#get beginning of read time
now=datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%S')
now=datetime.utcnow().isoformat(timespec='seconds')
# get jamming level
S.write("GPS:JAM?\r\n")
jam = S.readlines()[1].decode('utf-8') #[1].rstrip('\r\n')
Expand Down
2 changes: 1 addition & 1 deletion nmealog.py
Expand Up @@ -98,7 +98,7 @@ def readbuf(S,lastday,logstem,nline,verbose):
print(cgrp)

if logstem is not None:
logfn = f'{logstem}-{lastday.strftime('%Y-%m-%d')}.log'
logfn = f'{logstem}-{lastday.strftime("%Y-%m-%d")}.log'
with open(logfn,"a") as f:
f.write(cgrp)
elif not verbose:
Expand Down

0 comments on commit c9e7a42

Please sign in to comment.