@@ -858,9 +858,10 @@ HotelTV.hcap = (function() {
|
||||
|
||||
// STEP#004::> Power Mode
|
||||
if (_devinfo["instant_power"] !== undefined) {
|
||||
if (_devinfo["instant_power"] != 0) {
|
||||
let _instant_pwr_target_mode = 0;
|
||||
if (_devinfo["instant_power"] != _instant_pwr_target_mode) {
|
||||
console.log("INSTANT POWER MODE::> off");
|
||||
__hcapfxn_set_property('instant_power', 0).then(_result => {
|
||||
__hcapfxn_set_property('instant_power', _instant_pwr_target_mode).then(_result => {
|
||||
hcap.power.getPowerMode({
|
||||
"onSuccess": function(s) {
|
||||
console.log("onSuccess power mode " + s.mode);
|
||||
|
||||
Reference in New Issue
Block a user