mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-10-31 23:57:10 -04:00
Use UTC for WSPR band hopping scheduling
Some locations use offsets from UTC that are not integral hours. Merged from ^/branches/wsjtx git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx-1.6@6137 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
57f5c85d8f
commit
ca8f8a56dc
@ -200,7 +200,7 @@ int create_tx_schedule(int pctx)
|
||||
int next_tx_state(int pctx)
|
||||
{
|
||||
time_t now=time(0)+30;
|
||||
tm *ltm = localtime(&now);
|
||||
tm *ltm = gmtime(&now);
|
||||
int hour = ltm->tm_hour;
|
||||
int minute = ltm->tm_min;
|
||||
|
||||
@ -221,7 +221,7 @@ int next_tx_state(int pctx)
|
||||
int next_hopping_band()
|
||||
{
|
||||
time_t now=time(0)+30;
|
||||
tm *ltm = localtime(&now);
|
||||
tm *ltm = gmtime(&now);
|
||||
int minute = ltm->tm_min;
|
||||
int tx_2min_slot = (minute%20)/2;
|
||||
return tx_2min_slot;
|
||||
|
Loading…
Reference in New Issue
Block a user