Changeset 16864


Ignore:
Timestamp:
06/18/13 15:58:41 (12 years ago)
Author:
tbretz
Message:
Fixed the twilight check
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/scripts/Main.js

    r16858 r16864  
    10121012            if (!was_up && sun.isUp)
    10131013            {
    1014                 console.out("");
    1015                 dim.log("Sun rise detected.... automatic shutdown initiated!");
    1016                 // FIXME: State check?
    1017                 Shutdown();
    1018                 system_on = false;
     1014                dim.log("Sun rise detected....");
    10191015                continue;
    10201016            }
     
    10601056        // e.g. drive went to ERROR? Maybe we have to check all states again?
    10611057
    1062         var twilight = Sun(-16).isUp;
     1058        var twilight = Sun.horizon(-16).isUp;
    10631059
    10641060        if (twilight)
Note: See TracChangeset for help on using the changeset viewer.