Rev 1238 | Rev 1244 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1238 | Rev 1239 | ||
|---|---|---|---|
| Line 29... | Line 29... | ||
| 29 | 29 | ||
| 30 | Display.prototype.myLCDService = null; |
30 | Display.prototype.myLCDService = null; |
| 31 | Display.prototype.myRotaryService = null; |
31 | Display.prototype.myRotaryService = null; |
| 32 | Display.prototype.mySoftPwmService = null; |
32 | Display.prototype.mySoftPwmService = null; |
| 33 | Display.prototype.myInterval = null; |
33 | Display.prototype.myInterval = null; |
| - | 34 | Display.prototype.myIntervalAlways = null; |
|
| 34 | 35 | ||
| 35 | /* */ |
36 | /* */ |
| 36 | Display.prototype.exchangeCalendar = null; |
37 | Display.prototype.exchangeCalendar = null; |
| 37 | /* */ |
38 | /* */ |
| 38 | Display.prototype.exchangeCalendarFirstMenuItem = null; |
39 | Display.prototype.exchangeCalendarFirstMenuItem = null; |
| Line 102... | Line 103... | ||
| 102 | } |
103 | } |
| 103 | this.shortName = this.myInitialArguments["ShortName"]; |
104 | this.shortName = this.myInitialArguments["ShortName"]; |
| 104 | 105 | ||
| 105 | /* Start interval timer for sending timestamp to network. Arguments are the callback function and time in milliseconds |
106 | /* Start interval timer for sending timestamp to network. Arguments are the callback function and time in milliseconds |
| 106 | used to make sure an eth-node gets its init packet */ |
107 | used to make sure an eth-node gets its init packet */ |
| 107 | this. |
108 | this.myIntervalAlways = new Interval(function() { self.sendTimeStamp() }, 10000); |
| - | 109 | this.myIntervalAlways.start(); |
|
| 108 | 110 | ||
| 109 | this.screenSaverCnt = 0; |
111 | this.screenSaverCnt = 0; |
| 110 | this.mainScreenCnt = 0; |
112 | this.mainScreenCnt = 0; |
| 111 | this.exchangeUpdateCnt = exchangeUpdateTimeout-10; |
113 | this.exchangeUpdateCnt = exchangeUpdateTimeout-10; |
| 112 | 114 | ||
| Line 644... | Line 646... | ||
| 644 | 646 | ||
| 645 | Display.prototype.sendTimeStamp = function() |
647 | Display.prototype.sendTimeStamp = function() |
| 646 | { |
648 | { |
| 647 | var canMessage = new CanNMTMessage("nmt", "Time"); |
649 | var canMessage = new CanNMTMessage("nmt", "Time"); |
| 648 | canMessage.send(); |
650 | canMessage.send(); |
| 649 | - | ||
| 650 | } |
651 | } |
| 651 | 652 | ||
| 652 | Display.prototype.timerUpdate = function() |
653 | Display.prototype.timerUpdate = function() |
| 653 | { |
654 | { |
| 654 | /* If LCD service is not online do nothing */ |
655 | /* If LCD service is not online do nothing */ |