Changeset 16864
- Timestamp:
- 06/18/13 15:58:41 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/scripts/Main.js
r16858 r16864 1012 1012 if (!was_up && sun.isUp) 1013 1013 { 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...."); 1019 1015 continue; 1020 1016 } … … 1060 1056 // e.g. drive went to ERROR? Maybe we have to check all states again? 1061 1057 1062 var twilight = Sun (-16).isUp;1058 var twilight = Sun.horizon(-16).isUp; 1063 1059 1064 1060 if (twilight)
Note:
See TracChangeset
for help on using the changeset viewer.