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