Rev 1351 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1351 | Rev 1386 | ||
|---|---|---|---|
| Line 21... | Line 21... | ||
| 21 | /* If the service is already online we should call the handler here */ |
21 | /* If the service is already online we should call the handler here */ |
| 22 | this.PowerOnline(); |
22 | this.PowerOnline(); |
| 23 | 23 | ||
| 24 | 24 | ||
| 25 | } |
25 | } |
| 26 | - | ||
| 27 | 26 | ||
| 28 | MainMenuItem.prototype.PowerOnline = function() |
27 | MainMenuItem.prototype.PowerOnline = function() |
| 29 | { |
28 | { |
| 30 | /* If service is not online do nothing */ |
29 | /* If service is not online do nothing */ |
| 31 | if (this.myPowerService.isOnline()) |
30 | if (this.myPowerService.isOnline()) |
| 32 | { |
31 | { |
| 33 | log("Power is online!\n"); |
32 | log("Power is online!\n"); |
| 34 | /* Set report interval to 2 seconds */ |
33 | /* Set report interval to 2 seconds */ |
| 35 |
|
34 | // this.myPowerService.setReportInterval(4); |
| - | 35 | //this.myPowerService.setEnergy(1649500); |
|
| 36 | } |
36 | } |
| 37 | } |
37 | } |
| 38 | 38 | ||
| 39 | MainMenuItem.prototype.powerUpdate = function() |
39 | MainMenuItem.prototype.powerUpdate = function() |
| 40 | { |
40 | { |