|
@@ -681,7 +681,7 @@ class Lampcontrol extends Base_Controller {
|
|
|
$word = '';
|
|
|
if ($key == 'intell_power' || $key == 'light_type') {
|
|
|
$word = substr('0'.base_convert($value, 10, 16), -1);
|
|
|
- }elseif (strpos('light_time', $key)) {
|
|
|
+ }elseif (strpos($key,'light_time')) {
|
|
|
$t = explode(':', $value);
|
|
|
$m = $t[0]*60+$t[1];
|
|
|
$m = round($m/10);
|